forked from SHTOOLS/SHTOOLS
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (56 loc) · 1.54 KB
/
ci_test.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Continuous Integration Tests
on:
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.12']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 250
fetch-tags: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
channel-priority: strict
auto-update-conda: true
miniconda-version: "latest"
activate-environment: ci_test
environment-file: environment.yml
- name: Set up Conda environment
shell: bash -l {0}
run: |
conda list -n ci_test
- name: Install gcc for macOS
shell: bash -l {0}
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew reinstall gcc
- name: Build using pip
shell: bash -l {0}
run: |
conda env list
pip install --no-deps .
- name: Run tests
shell: bash -l {0}
run: |
conda env list
python examples/notebooks/test_notebooks.py
export MPLBACKEND=Agg
make -C examples/python -f Makefile no-timing
mkdir empty && cd empty
python -c "import pyshtools"