Skip to content

Commit

Permalink
Fix and improve workflow jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed May 9, 2024
1 parent d39e1bf commit 66ba2e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ env:
PUBLISH_TO_PYPI: true

jobs:
pypi:
publish:
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -21,18 +22,12 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true

- uses: actions/setup-python@v5
with:
python-version-file: .python-version

- name: Install Dependencies
run: make install

- name: Build Wheel
run: make build

# This will only run on Tags
- name: Publish package
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ env:
COLUMNS: 100

jobs:
check:
test:
name: ${{matrix.target}}
strategy:
fail-fast: false
matrix:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/tomlsort.yaml

This file was deleted.

0 comments on commit 66ba2e7

Please sign in to comment.