Skip to content

Commit

Permalink
Add tests and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Nov 26, 2023
1 parent 00db7b9 commit a6f7c8a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ env:
python: 3.11

jobs:
build:
test:
uses: ./.github/workflows/tests.yaml
release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -19,7 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
- name: Get version using setuptools and save as variable use newer syntax
- name: Get version using setuptools
id: get_version
run: |
echo ::set-output name=version::$(python setup.py --version)
Expand All @@ -28,5 +31,7 @@ jobs:
with:
tag: v${{ steps.get_version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: release
uses: ./.github/workflows/pypi.yaml

0 comments on commit a6f7c8a

Please sign in to comment.