Skip to content

Commit

Permalink
Now Github Actions provides python3 via setup-python also for Apple S…
Browse files Browse the repository at this point in the history
…ilicon Macs
  • Loading branch information
misl6 committed Oct 5, 2023
1 parent 9d66904 commit f95bcff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
13 changes: 0 additions & 13 deletions .ci/osx_ci.sh

This file was deleted.

34 changes: 14 additions & 20 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,37 @@ jobs:
runs-on: ${{ matrix.runs_on }}
strategy:
matrix:
include:
- runs_on: macos-latest
runs_on:
- macos-latest
- apple-silicon-m1
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
exclude:
- runs_on: apple-silicon-m1
python: "3.7"
- runs_on: macos-latest
- runs_on: apple-silicon-m1
python: "3.8"
- runs_on: macos-latest
python: "3.9"
- runs_on: macos-latest
python: "3.10"
- runs_on: macos-latest
python: "3.11"
- runs_on: apple-silicon-m1
python: "3.9"
- runs_on: apple-silicon-m1
python: "3.10"
- runs_on: apple-silicon-m1
python: "3.11"
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python }}
# Needs to be skipped on our self-hosted runners tagged as 'apple-silicon-m1'
if: ${{ matrix.runs_on != 'apple-silicon-m1' }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install project
run: |
source .ci/osx_ci.sh
arm64_set_path_and_python_version ${{ matrix.python }}
pip install cython pytest
pip install .
- name: Test with pytest
run: |
source .ci/osx_ci.sh
arm64_set_path_and_python_version ${{ matrix.python }}
make test_lib
make
make tests

0 comments on commit f95bcff

Please sign in to comment.