-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (48 loc) · 1.28 KB
/
test.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
name: Test
on:
pull_request:
workflow_dispatch:
push:
branches: [master]
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: ['ubuntu-latest']
python: ['3.7', '3.8', '3.9']
include:
- os: 'macos-latest'
python: '3.7'
env:
PYTEST_ADDOPTS: --cov --color=yes
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
# NOTE: Install cylc-uiserver in editable mode for correct coverage results
- name: Install cylc-uiserver & dependencies
run: |
pip install git+https://github.com/cylc/cylc-flow@master
pip install -e .[all]
- name: (Debug - pip list)
run: pip list --format=freeze
- name: Style test
run: flake8
- name: Type checking
run: mypy
- name: Test
run: pytest
- name: Coverage report
run: |
coverage xml --ignore-errors
coverage report
- name: Codecov upload
uses: codecov/codecov-action@v3
with:
name: '${{ matrix.os }} py-${{ matrix.python }}'
fail_ci_if_error: false