-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 1.04 KB
/
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
name: Run tests
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 6
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Test the source code
run: |
pytest --ci tests/ -m 'not (tutorials or espresso)' --cov-config=.coveragerc --cov=./koopmans/ --cov-report=xml
- name: Upload coverage to Codecov
if: github.repository == 'epfl-theos/koopmans'
uses: codecov/codecov-action@v3
with:
file: coverage.xml