Skip to content

Commit

Permalink
Updated workflow ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkdrag committed Mar 12, 2024
1 parent c1d8f26 commit 4831fa7
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -32,7 +32,7 @@ jobs:
pip install -r requirements.dev.txt
pip install -r requirements.txt
- name: Cache pip dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cache/pip # This path is specific to Ubuntu
# Check for a cache hit for the corresponding dev requirements file
Expand All @@ -57,26 +57,16 @@ jobs:
make coverage
- name: Generate docs
run: |
make docs
- name: Generate package
run: |
make dist
- name: Upload distribution package
uses: actions/upload-artifact@master
with:
name: dist
path: dist
make docs
pypi-publish:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
if: github.event_name == 'release'
steps:
- name: Download distribution package
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: Generate package
run: |
make dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 4831fa7

Please sign in to comment.