-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (51 loc) · 1.6 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
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@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install tox codecov
- name: Test
run: |
tox -e py${{ matrix.python }}-${{ matrix.slepc }} -vv
env:
PLATFORM: ${{ matrix.os }}
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }}
env_vars: OS,PYTHON
fail_ci_if_error: false
verbose: true