Skip to content

Commit

Permalink
New attempt to run tests on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsoucasse committed Sep 30, 2024
1 parent 5d9af15 commit a817a59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ on:
jobs:
test:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12']

steps:
Expand All @@ -25,26 +26,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-virtualenv
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}

- name: Build MORS
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
run: |
python -m pip install -e .[develop]
- uses: actions/cache@v3
id: cache-fwl-data
with:
path: /home/runner/work/fwl_data
path: $HOME/work/fwl_data
key: fwl-data-1

- name: Test with pytest
run: |
export FWL_DATA="/home/runner/work/fwl_data"
export FWL_DATA="$HOME/work/fwl_data"
coverage run -m pytest
- name: Report coverage
Expand Down

0 comments on commit a817a59

Please sign in to comment.