-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (38 loc) · 1.29 KB
/
compatibility.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
name: Compatibility
on:
schedule:
- cron: '0 4 * * SUN'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.11']
toxenv: [py311-test-all-latest]
# release: [main, latest] # there are no releases yet so this would break
release: [main]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- if: matrix.release != 'main'
name: Checkout Release
run: |
git checkout tags/$(curl -s https://api.github.com/repos/simonsobs/SOLikeT/releases/${{ matrix.release }} | python -c "import sys, json; print(json.load(sys.stdin)['tag_name'])")
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
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: Run Tests
shell: bash -el {0}
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}