-
Notifications
You must be signed in to change notification settings - Fork 15
66 lines (59 loc) · 1.83 KB
/
testing.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: Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: latest supported versions
os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-all-latest-cov
- name: oldest supported versions
os: ubuntu-latest
python-version: '3.8'
toxenv: py38-test-oldest
- name: macOS latest
os: macos-latest
python-version: '3.11'
toxenv: py311-test-latest
- name: Windows latest
os: windows-latest
python-version: '3.11'
toxenv: py311-test-latest
env:
PYTHONIOENCODING: utf-8
PYTHONUTF8: 1
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: false
activate-environment: soliket-tests
environment-file: soliket-tests.yml
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Dependencies
shell: bash -el {0}
run: |
pip install tox
- name: temp test mflike installation
shell: bash -el {0}
run: |
pip install git+https://github.com/simonsobs/LAT_MFLike.git@restructure#egg=mflike
- name: Run Tests
shell: bash -el {0}
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}
- if: contains(matrix.toxenv, '-cov')
name: Report Coverage
uses: codecov/codecov-action@v3