-
Notifications
You must be signed in to change notification settings - Fork 35
71 lines (58 loc) · 1.79 KB
/
main.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
66
67
68
69
70
71
name: pymake continuous integration
on:
schedule:
- cron: '0 3 * * 3' # run at 3 AM UTC every Wednesday
push:
branches: [ master ]
pull_request:
branches:
- master
jobs:
pymakeCI-os-intel:
name: pymake CI intel on different OSs
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Intel OneAPI Compilers
uses: modflowpy/install-intelfortran-action@v1
- name: Setup Graphviz
if: runner.os == 'Linux'
uses: ts-graphviz/setup-graphviz@v1
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Install python packages
run: |
.github/common/install-python.sh
- name: Download examples for pytest runs
run: |
.github/common/download-examples.sh
- name: test on Linux
if: runner.os == 'Linux'
run: |
pytest -v -n=auto --dist=loadfile -m="base or regression" --durations=0 --cov=pymake --cov-report=xml autotest/
- name: test on MacOS
if: runner.os == 'macOS'
run: |
pytest -v -n=auto --dist=loadfile -m="base" --durations=0 --cov=pymake --cov-report=xml autotest/
- name: test on Windows
if: runner.os == 'Windows'
shell: cmd
run: |
pytest -v -m="base" --durations=0 --cov=pymake --cov-report=xml autotest/
- name: Print coverage report before upload
run: |
coverage report
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml