Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: speed up #4

Merged
merged 8 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
path: dist

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
with:
subject-path: "dist/f2py*"

Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: yezz123/setup-uv@v4
- uses: pre-commit/action@v3.0.1
with:
extra_args: --hook-stage manual --all-files
Expand All @@ -36,15 +37,14 @@ jobs:
checks:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
needs: [pre-commit]
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
runs-on: [ubuntu-latest, macos-14]

include:
- python-version: "pypy-3.10"
- python-version: "pypy-3.9"
runs-on: ubuntu-latest

steps:
Expand All @@ -57,12 +57,17 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- uses: yezz123/setup-uv@v4

- name: Install gfortran
if: runner.os == 'macOS'
run: brew install gcc
run: |
echo "gfortran: $(which gfortran)"
brew reinstall gfortran
echo "gfortran: $(which gfortran)"

- name: Install package
run: python -m pip install .[test]
run: uv pip install --system -e .[test]

- name: Test package
run: >-
Expand Down
Loading