Skip to content

Commit

Permalink
- split testing platform matrix into separate; primarily because M1 r…
Browse files Browse the repository at this point in the history
…unner with MacOS 14 deprecated Python 3.9
  • Loading branch information
amkrajewski authored Feb 10, 2024
1 parent aabbe71 commit aeb6c73
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/coreTests_LinuxUbuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Linux (Ubuntu)

on:
push:
paths:
- 'pysipfenn/**'
- '.github/workflows/coreTests_LinuxUbuntu.yaml'
workflow_dispatch:

jobs:
coreTest:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install wheel flask pytest pytest-cov
python -m pip install -e .
- name: Test with pytest
run: |
pytest
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ on:
push:
paths:
- 'pysipfenn/**'
- '.github/workflows/coreTests.yaml'
- '.github/workflows/coreTests_MacIntel.yaml'
workflow_dispatch:

jobs:
coreTest:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
platform: [ubuntu-latest, macos-12, macos-14, windows-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
runs-on: macos-12
steps:
- uses: actions/checkout@v3

Expand All @@ -33,4 +32,4 @@ jobs:
python -m pip install -e .
- name: Test with pytest
run: |
pytest --cov=pysipfenn --cov-report=xml
pytest
35 changes: 35 additions & 0 deletions .github/workflows/coreTests_MacM1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Core Functions

on:
push:
paths:
- 'pysipfenn/**'
- '.github/workflows/coreTests_MacM1.yaml'
workflow_dispatch:

jobs:
coreTest:
strategy:
matrix:
python-version: ["3.10", "3.11"]
fail-fast: false
runs-on: macos-14
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install wheel flask pytest pytest-cov
python -m pip install -e .
- name: Test with pytest
run: |
pytest
35 changes: 35 additions & 0 deletions .github/workflows/coreTests_Windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Core Functions

on:
push:
paths:
- 'pysipfenn/**'
- '.github/workflows/coreTests_Windows.yaml'
workflow_dispatch:

jobs:
coreTest:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
fail-fast: false
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install wheel flask pytest pytest-cov
python -m pip install -e .
- name: Test with pytest
run: |
pytest

0 comments on commit aeb6c73

Please sign in to comment.