update GitHub actions to latest versions #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: selftest | |
on: | |
pull_request: | |
push: | |
branches: | |
- release/* | |
- test | |
jobs: | |
dist-pure-python: | |
name: Build pure Python dist | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install flit | |
run: python -m pip install flit | |
- name: Build dist | |
run: | | |
cd example-pure-python | |
python -m flit build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist-pure-python | |
path: example-pure-python/dist | |
dist-manylinux: | |
name: Build manylinux dist | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install maturin | |
run: python -m pip install maturin | |
- name: Build dist | |
run: | | |
cd example-manylinux | |
python -m maturin build | |
python -m maturin sdist | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist-manylinux | |
path: example-manylinux/target/wheels | |
pure-python-build: | |
name: Pure Python / Build | |
needs: dist-pure-python | |
uses: ./.github/workflows/build.yaml | |
with: | |
dist: dist-pure-python | |
artifact: docs-pure-python | |
manylinux-build: | |
name: Manylinux / Build | |
needs: dist-manylinux | |
uses: ./.github/workflows/build.yaml | |
with: | |
dist: dist-manylinux | |
artifact: docs-manylinux | |
extras-build: | |
name: Extras / Build | |
needs: dist-pure-python | |
uses: ./.github/workflows/build.yaml | |
with: | |
dist: dist-pure-python | |
extras: x,y | |
artifact: docs-extras | |
extras-check: | |
name: Extras / Check | |
needs: extras-build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: docs-extras | |
path: target/sphinx | |
- name: Has typing-extensions | |
run: grep -q HAS_TYPING_EXTENSIONS -R target/sphinx | |
- name: Has tomli | |
run: grep -q HAS_TOMLI -R target/sphinx | |
requirements-build: | |
name: Requirements / Build | |
needs: dist-pure-python | |
uses: ./.github/workflows/build.yaml | |
with: | |
dist: dist-pure-python | |
requirements: 'tomli typing-extensions' | |
artifact: docs-requirements | |
requirements-check: | |
name: Requirements / Check | |
needs: requirements-build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: docs-requirements | |
path: target/sphinx | |
- name: Has typing-extensions | |
run: grep -q HAS_TYPING_EXTENSIONS -R target/sphinx | |
- name: Has tomli | |
run: grep -q HAS_TOMLI -R target/sphinx |