-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.07 KB
/
tests.yml
File metadata and controls
42 lines (39 loc) · 1.07 KB
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
name: symfc-alm test using conda-forge environment and ALM
on:
push:
pull_request:
branches: [ develop ]
jobs:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge
channel-priority: strict
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
conda activate test
conda install --yes -c conda-forge python=${{ matrix.python-version }}
conda install --yes -c conda-forge alm scikit-learn pytest codecov pytest-cov h5py
- name: Setup symfc
run: |
conda activate test
pip install -e . -vvv
- name: Test with pytest
run: |
conda activate test
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true