-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 904 Bytes
/
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
name: Testing
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Latest Version
os: ubuntu-latest
python-version: '3.12'
- name: Oldest Version
os: ubuntu-latest
python-version: '3.8'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Dependencies
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Cache testing Dataset
shell: bash -el {0}
run: |
export COBAYA_PACKAGES_PATH=./cobaya_packages
cobaya-install wmaplike.WMAPLike
- name: Run Tests
shell: bash -el {0}
run: |
pytest -v