Skip to content

Commit

Permalink
Run tests with oldest dependencies on x86 macos (#414)
Browse files Browse the repository at this point in the history
Change configuration of tests in GitHub Actions: use the latest x86
macos runner with the `oldest` dependencies and Python 3.7. Use the
latest macos runner (arm64) only against the `latest` and `optional`
requirements. This fixes CI failing because there are not Numpy binaries
in PyPI for arm64 and compatible with Python 3.7.
  • Loading branch information
santisoler committed May 28, 2024
1 parent 2e47b8d commit 030f928
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
test:
name: ${{ matrix.os }} python=${{ matrix.python }} dependencies=${{ matrix.dependencies }}
if: ${{ github.repository_owner == 'fatiando' || github.event_name != 'schedule' }}
runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os }}
strategy:
# Otherwise, the workflow would stop if a single job fails. We want to
# run all of them to catch failures in different combinations.
fail-fast: false
matrix:
os:
- ubuntu
- macos
- windows
- ubuntu-latest
- macos-latest
- windows-latest
dependencies:
- oldest
- latest
Expand All @@ -50,6 +50,14 @@ jobs:
python: "3.11"
- dependencies: optional
python: "3.11"
# test on macos-13 (x86) using oldest dependencies and python 3.7
- os: macos-13
dependencies: oldest
python: "3.7"
exclude:
# don't test on macos-latest (arm64) with oldest dependencies
- os: macos-latest
dependencies: oldest
env:
REQUIREMENTS: env/requirements-build.txt env/requirements-test.txt
# Used to tag codecov submissions
Expand Down

0 comments on commit 030f928

Please sign in to comment.