Skip to content

Commit

Permalink
Fix macOS version, update to python setup v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed Apr 24, 2024
1 parent 9d9fe5c commit 9a85c4c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
branches: [ "master" ]

jobs:
build_test:
build_test_older_than_py310:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
os:
- ubuntu-latest
- macOS-13
Expand All @@ -33,3 +33,28 @@ jobs:
- name: Run tests
run: |
pytest
build_test_newer_than_py311:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
os:
- ubuntu-latest
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run tests
run: |
pytest
14 changes: 7 additions & 7 deletions .github/workflows/test_min_reqs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: [ "master" ]

jobs:
build_test_py37:
test_min_reqs_py37:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,14 +41,14 @@ jobs:
run: |
pytest
build_test_py38_39:
test_min_reqs_py38_39:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"] # Same minimum requirements
os:
- ubuntu-latest
- macOS-latest
- macOS-13
- windows-latest
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -73,13 +73,13 @@ jobs:
run: |
pytest
build_test_py310:
test_min_reqs_py310:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- macOS-13
- windows-latest
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -104,7 +104,7 @@ jobs:
run: |
pytest
build_test_py311:
test_min_reqs_py311:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
run: |
pytest
build_test_py312:
test_min_reqs_py312:
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 9a85c4c

Please sign in to comment.