Skip to content

Commit

Permalink
Simplify macOS CI workflow (no need for indirection / extra scripts) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Jul 31, 2023
1 parent ec58974 commit a7466a0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 74 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ on:
jobs:
ci:
runs-on: macos-latest
env:
PY_VERSION: "${{ matrix.python-version }}"
strategy:
matrix:
python-version:
Expand All @@ -58,8 +56,35 @@ jobs:
brew unlink gcc
brew link gcc
- name: Run "install" to setup Python environment and tooling
run: scripts/macos/setup.sh
- name: Show Python version
run: |
python --version
- name: Update host Python packaging
run: |
python -m pip install --upgrade "cmake >= 3.25.2" "nox >= 2022.11.21" numpy pip
- name: Unit tests in Python 3.9
if: matrix.python-version == '3.9'
run: |
nox --session unit-3.9
- name: Unit tests in Python 3.10
if: matrix.python-version == '3.10'
run: |
nox --session unit-3.10
- name: Unit tests AND line coverage in Python 3.11
if: matrix.python-version == '3.11'
run: |
nox --session cover
- name: Run tests
run: scripts/macos/test.sh
- name: Functional tests in Python 3.11
if: matrix.python-version == '3.11'
run: |
nox --session functional-3.11
- name: Run all doctests
if: matrix.python-version == '3.11'
run: |
nox --session doctest
30 changes: 0 additions & 30 deletions scripts/macos/setup.sh

This file was deleted.

38 changes: 0 additions & 38 deletions scripts/macos/test.sh

This file was deleted.

0 comments on commit a7466a0

Please sign in to comment.