-
Notifications
You must be signed in to change notification settings - Fork 9
executable file
·56 lines (43 loc) · 1.3 KB
/
pytest-actions.yaml
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: Test osipi
on: [push]
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: '1.8.3' # Specify the Poetry version you need
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Update lock file
run: poetry lock --no-update
- name: Install dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest --junitxml=junit/test-results.xml --cov=dbdicom tests/
- name: Upload coverage to Codecov
if: runner.os == 'Windows'
uses: codecov/codecov-action@v3