Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-mueller committed Sep 24, 2024
1 parent 8c8debc commit 01b77ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: [ubuntu-latest]
container: python:3.10-bookworm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
Expand All @@ -37,7 +37,7 @@ jobs:
run: |
sphinx-build -b html docs/ _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4

# Deployment job
deploy-docs:
Expand Down
27 changes: 19 additions & 8 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and upload to PyPI

on:
workflow_dispatch:
release:
type: [published]
types: [published]

env:
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-*
Expand All @@ -18,11 +19,11 @@ jobs:
matrix:
os: [ubuntu-latest] #, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
Expand All @@ -35,7 +36,7 @@ jobs:
run: |
# python -m cibuildwheel --output-dir wheelhouse
python setup.py bdist_wheel
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl

Expand All @@ -44,11 +45,11 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
Expand All @@ -60,7 +61,7 @@ jobs:
- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz

Expand All @@ -69,11 +70,21 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- uses: actions/download-artifact@v4
with:
name: artifact-wheel-windows-latest
path: dist

- uses: actions/download-artifact@v4
with:
name: artifact-wheel-ubuntu-latest
path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down

0 comments on commit 01b77ad

Please sign in to comment.