Skip to content

Commit

Permalink
Upgrade ci
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Aug 22, 2024
1 parent f914c7e commit 59ec083
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Flake8
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install requirements
Expand All @@ -54,7 +54,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Check that the package build works
Expand All @@ -66,10 +66,15 @@ jobs:
runs-on: ubuntu-latest
needs: [lint, test, pkg_build]
name: Deploy release to Pypi
environment:
name: release
url: https://pypi.org/p/biomaj-download
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Python install
Expand All @@ -78,6 +83,6 @@ jobs:
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 59ec083

Please sign in to comment.