-
Notifications
You must be signed in to change notification settings - Fork 15
57 lines (49 loc) · 1.42 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
name: Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
COBAYA_PACKAGES_PATH: ./cobaya_packages
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: True
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'
# - name: oldest supported versions
# os: ubuntu-latest
# python-version: '3.8'
#
# - name: macOS latest
# os: macos-latest
# python-version: '3.11'
#
# - name: Windows latest
# os: windows-latest
# python-version: '3.12'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: soliket-tests
auto_activate_base: False
python-version: ${{ matrix.python-version }}
channels: conda-forge
condarc-file: soliket-tests.yml
- name: Install Dependencies
run: pip install .
- name: Run Tests
run: pytest .
- if: matrix.os == 'ubuntu-latest'
name: Report Coverage
uses: codecov/codecov-action@v3