Skip to content

Commit a6f7c8a

Browse files
committed
Add tests and publish
1 parent 00db7b9 commit a6f7c8a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/create_release.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ env:
77
python: 3.11
88

99
jobs:
10-
build:
10+
test:
11+
uses: ./.github/workflows/tests.yaml
12+
release:
13+
needs: test
1114
runs-on: ubuntu-latest
1215
steps:
1316
- uses: actions/checkout@v2
@@ -19,7 +22,7 @@ jobs:
1922
run: |
2023
python -m pip install --upgrade pip
2124
python -m pip install --upgrade setuptools
22-
- name: Get version using setuptools and save as variable use newer syntax
25+
- name: Get version using setuptools
2326
id: get_version
2427
run: |
2528
echo ::set-output name=version::$(python setup.py --version)
@@ -28,5 +31,7 @@ jobs:
2831
with:
2932
tag: v${{ steps.get_version.outputs.version }}
3033
token: ${{ secrets.GITHUB_TOKEN }}
31-
34+
publish:
35+
needs: release
36+
uses: ./.github/workflows/pypi.yaml
3237

0 commit comments

Comments
 (0)