-
Notifications
You must be signed in to change notification settings - Fork 24
36 lines (33 loc) · 990 Bytes
/
Copy pathtest.yml
File metadata and controls
36 lines (33 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests on Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: tox
# - name: Run tests on Windows
# if: ${{ matrix.os == 'windows-latest' }}
# run: tox -e py${{ matrix.python-version }}
# - name: Run tests on MacOS-latest
# if: ${{ matrix.os == 'macos-latest' }}
# # https://github.com/actions/runner-images/issues/1280#issuecomment-662839485
# run: FC=gfortran-12 tox -e py${{ matrix.python-version }}