-
Notifications
You must be signed in to change notification settings - Fork 137
54 lines (52 loc) · 1.51 KB
/
integration-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: integration-tests
on:
push:
branches:
- "master"
- "test-me/*"
pull_request:
branches:
- "*"
schedule:
- cron: "0 7 * * 1" # Run every Monday at 7:00 UTC
defaults:
run:
shell: bash -el {0}
jobs:
integration-test:
if: github.event.pull_request.draft == false
name: ${{ matrix.os }} integration tests
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu, windows]
include:
- os: macos
os-short: osx
- os: ubuntu
os-short: linux
- os: windows
os-short: win
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Conda and parcels
uses: ./.github/actions/install-parcels
with:
environment-file: environment_py3_${{ matrix.os-short }}.yml
environment-name: py3_parcels
- name: Integration test
run: |
coverage run -m pytest -v -s --nbval-lax -k "not documentation" --html="${{ matrix.os }}_integration_test_report.html" --self-contained-html docs/examples
coverage xml
- name: Codecov
uses: codecov/[email protected]
with:
flags: integration-tests
- name: Upload test results
if: ${{ always() }} # Always run this step, even if tests fail
uses: actions/[email protected]
with:
name: Integration test report
path: ${{ matrix.os }}_integration_test_report.html