-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (49 loc) · 1.37 KB
/
pytest.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
name: pytest
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'weldx_widgets/**'
- '.github/workflows/pytest.yml'
jobs:
pytest:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
py: ['3.9', '3.10', '3.11']
weldx_version: ['weldx']
include:
- os: ubuntu-latest
py: '3.10'
weldx_version: 'git+https://github.com/BAMWelDX/weldx.git'
env:
WELDX_VERSION: ${{ matrix.weldx_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: pip installs
run: |
pip install wheel
pip install $WELDX_VERSION
pip install -e .[test]
- name: run pytest
run: |
pytest --no-cov-on-fail
- name: coverage xml (combination is performed by pytest-cov)
run: coverage xml
- name: codecov.io
uses: codecov/[email protected]