-
Notifications
You must be signed in to change notification settings - Fork 53
39 lines (34 loc) · 1.05 KB
/
tcrm-tests.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit tests for TCRM
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
TCRM:
name: Test TCRM
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: MambaForge
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: true
activate-environment: tcrm
environment-file: tcrmenv.yml
auto-activate-base: false
use-only-tar-bz2: true
- name: Test with pytest
env:
PYTHONPATH: ~/tcrm;~/tcrm/Utilities
shell: bash -l {0}
run: |
pytest -x --cov=. --cov-report xml