Skip to content

Commit

Permalink
feat: Getting a bit closer to release
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayvammi committed Feb 14, 2024
1 parent 5c155aa commit bba76ad
Show file tree
Hide file tree
Showing 76 changed files with 530 additions and 3,745 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#TODO: Fix release for non bump builds
on:
push:
paths:
Expand Down Expand Up @@ -31,15 +30,27 @@ jobs:
with:
python-version: 3.8
- run: python -m pip install python-semantic-release==8.0.7
# - run: python -m poetry install --only release
- name: Figure version
continue-on-error: true
id: last_tag
run: |
CURRENT=$(git tag --sort=-committerdate -l | head -n 1)
echo "current: $CURRENT"
VERSION=$(python -m semantic-release --noop --strict version --no-push --no-commit --print)
echo $VERSION
echo "New: $VERSION"
if [ "$CURRENT" == "$VERSION" ]; then
echo "version="" >> $GITHUB_OUTPUT
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
exit 0
- name: Apply new tag
if: steps.last_tag.outcome == 'success'
env:
VERSION: ${{ steps.last_tag.outputs.version }}
uses: actions/github-script@v6
Expand All @@ -54,6 +65,7 @@ jobs:
sha: context.sha
})
- name: Publish to PyPI
if: steps.last_tag.outcome == 'success'
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
LAST_TAG: ${{ steps.last_tag.outputs.version }}
Expand All @@ -64,6 +76,7 @@ jobs:
poetry publish --build
- name: "Create release"
if: steps.last_tag.outcome == 'success'
env:
RELEASE_TAG: ${{ steps.last_tag.outputs.version }}
uses: "actions/github-script@v6"
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p align="center">
<img src="https://github.com/AstraZeneca/magnus-core/blob/main/assets/logo-readme.png?raw=true" alt="Logo"/>
</p>
---
<hr style="border:2px dotted orange">

<p align="center">
<a href="https://pypi.org/project/magnus/"><img alt="python:" src="https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue.svg"></a>
Expand All @@ -17,7 +17,7 @@
<a href="https://github.com/AstraZeneca/magnus-core/actions/workflows/release.yaml"><img alt="Tests:" src="https://github.com/AstraZeneca/magnus-core/actions/workflows/release.yaml/badge.svg">
<a href="https://github.com/AstraZeneca/magnus-core/actions/workflows/docs.yaml"><img alt="Docs:" src="https://github.com/AstraZeneca/magnus-core/actions/workflows/docs.yaml/badge.svg">
</p>
---
<hr style="border:2px dotted orange">

Magnus is a simplified workflow definition language that helps in:

Expand Down Expand Up @@ -48,17 +48,20 @@ such as [data catalog](https://astrazeneca.github.io/magnus-core/concepts/catalo
[experiment tracking](https://astrazeneca.github.io/magnus-core/concepts/experiment-tracking)
and secure [access to secrets](https://astrazeneca.github.io/magnus-core/concepts/secrets).

<hr style="border:2px dotted orange">

## What does it do?


![works](assets/work.png)

<hr style="border:2px dotted orange">

## Documentation

[More details about the project and how to use it available here](https://astrazeneca.github.io/magnus-core/).

<hr style="border:2px dotted orange">

## Installation

Expand All @@ -71,6 +74,7 @@ pip install magnus
Please look at the [installation guide](https://astrazeneca.github.io/magnus-core/usage)
for more information.

<hr style="border:2px dotted orange">

## Example

Expand Down Expand Up @@ -391,3 +395,5 @@ Execute branches in parallel
Execute a pipeline over an iterable parameter.

[![](https://mermaid.ink/img/pako:eNqVlF1rwjAUhv9KyG4qKNR-3AS2m8nuBgN3Z0Sy5tQG20SSdE7E_76kVVEr2CY3Ied9Tx6Sk3PAmeKACc5LtcsKpi36nlGZFbXciHwfLN79CuWiBLMcEULWGkBSaeosA2OCxbxdXMd89Get2bZASsLiSyuvQE2mJZXIjW27t2rOmQZ3Gp9rD6UjatWnwy7q6zPPukd50WTydmemEiS_QbQ79RwxGoQY9UaMuojRA8TCXexzyHgQZNwbMu5Cxl3IXNX6OWMyiDHpzZh0GZMHjOK3xz2mgxjT3oxplzG9MPp5_nVOhwJjteDwOg3HyFj3L1dCcvh7DUc-iftX18n6Waet1xX8cG908vpKHO6OW7cvkeHm5GR2b3drdvaSGTODHLW37mxabYC8fLgRhlfxpjNdwmEets-Dx7gCXTHBXQc8-D2KbQEVUEzckjO9oZjKo9Ox2qr5XmaYWF3DGNdbzizMBHOVVWGSs9K4XeDCKv3ZttSmsx7_AYa341E?type=png)](https://mermaid.live/edit#pako:eNqVlF1rwjAUhv9KyG4qKNR-3AS2m8nuBgN3Z0Sy5tQG20SSdE7E_76kVVEr2CY3Ied9Tx6Sk3PAmeKACc5LtcsKpi36nlGZFbXciHwfLN79CuWiBLMcEULWGkBSaeosA2OCxbxdXMd89Get2bZASsLiSyuvQE2mJZXIjW27t2rOmQZ3Gp9rD6UjatWnwy7q6zPPukd50WTydmemEiS_QbQ79RwxGoQY9UaMuojRA8TCXexzyHgQZNwbMu5Cxl3IXNX6OWMyiDHpzZh0GZMHjOK3xz2mgxjT3oxplzG9MPp5_nVOhwJjteDwOg3HyFj3L1dCcvh7DUc-iftX18n6Waet1xX8cG908vpKHO6OW7cvkeHm5GR2b3drdvaSGTODHLW37mxabYC8fLgRhlfxpjNdwmEets-Dx7gCXTHBXQc8-D2KbQEVUEzckjO9oZjKo9Ox2qr5XmaYWF3DGNdbzizMBHOVVWGSs9K4XeDCKv3ZttSmsx7_AYa341E)

### [Arbitrary nesting](https://astrazeneca.github.io/magnus-core/concepts/nesting/)
Binary file modified docs/.DS_Store
Binary file not shown.
294 changes: 0 additions & 294 deletions docs/command-line.md

This file was deleted.

Loading

0 comments on commit bba76ad

Please sign in to comment.