-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (57 loc) · 1.94 KB
/
ci.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
58
59
60
61
62
63
64
65
name: CI
on:
schedule:
- cron: 00 00 * * 1 # Run every Monday at 00:00
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.10', '3.11', '3.12']
os: [ubuntu-latest]
slepc: ['noslepc']
include:
- os: ubuntu-latest
python: '3.9'
slepc: 'slepc'
- os: macos-latest
python: '3.10'
slepc: 'slepc'
steps:
- uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python }}
auto-update-conda: true
channels: conda-forge,defaults
- name: Install pip dependencies
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
pip install '.[test]'
- name: Install conda dependencies
if: ${{ matrix.slepc == 'slepc' }}
shell: bash -el {0}
run: |
conda install petsc slepc petsc4py slepc4py mpi4py
- name: Test
shell: bash -el {0}
run: |
python -m pytest --cov --cov-config=tox.ini --no-cov-on-fail --cov-report=xml --cov-report=term-missing:skip-covered -vv
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true