forked from cylc/cylc-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.32 KB
/
test_fast.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
name: fast tests
on:
pull_request:
workflow_dispatch:
push:
branches:
- master
- '8.*.x'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false # don't stop on first failure
matrix:
os: ['ubuntu-latest']
python-version: ['3.10']
env:
PYTEST_ADDOPTS: --cov --cov-append -n 5 --color=yes -q -l
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Apt-Get Install
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y sqlite3
- name: Install
run: |
pip install -e ."[all]"
- name: Configure git # Needed by the odd test
uses: cylc/release-actions/configure-git@v1
- name: Unit Tests
timeout-minutes: 5
run: |
pytest cylc/flow tests/unit
- name: Integration Tests
timeout-minutes: 6
run: |
pytest tests/integration
- name: Coverage report
run: |
coverage xml
coverage report