Skip to content

Commit

Permalink
CI: bump actions (#160)
Browse files Browse the repository at this point in the history
* CI: bump actions

* cleaner trusted pub

- partially reverts #150
- depends on casperdcl/deploy-pypi#18
  • Loading branch information
casperdcl authored Feb 11, 2024
1 parent c330327 commit 50bacc4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: pip install -U -e .[dev]
- run: pytest
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
deploy:
needs: test
name: PyPI Deploy
Expand All @@ -35,16 +35,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- id: dist
uses: casperdcl/deploy-pypi@v2
with:
build: true
upload: false
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Release
run: |
Expand Down

0 comments on commit 50bacc4

Please sign in to comment.