-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (50 loc) · 1.38 KB
/
Copy pathtests.yml
File metadata and controls
51 lines (50 loc) · 1.38 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: tests
on:
push:
pull_request:
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10", "3.12", "3.14"]
exclude:
- os: windows-latest
python: "3.10"
- os: ubuntu-latest
python: "3.10"
- os: macos-latest
python: "3.10"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v6
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
- name: setup conda
uses: conda-incubator/setup-miniconda@v4
with:
python-version: ${{ matrix.python }}
auto-update-conda: true
environment-file: .github/test_conda_env.yml
- name: install gfortran runtime (Windows)
if: runner.os == 'Windows'
run: conda install -y -c conda-forge gfortran
- name: print conda environment info
run: |
conda info -a
conda list
- name: install package
run: |
pip install -v --no-deps .
- name: run test
run: |
mkdir empty; cd empty
python -c 'import pygtide; pygtide.test()'
python -c 'import pygtide; pygtide.update()'
python -c 'import pygtide; pygtide.test()'