forked from pydicom/pydicom
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.5 KB
/
PR.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
name: PR
on:
pull_request:
types: [opened, synchronize]
jobs:
tests:
strategy:
fail-fast: false
matrix:
# One Python version per OS, one combo does coverage
# PyPy only has one line in pydicom (as of 2003-07) so cover in merge only
# Macos unlikely to fail if ubuntu okay so also cover in merge
os: [windows]
python-version: ["3.10"] # , "3.12" soon
test-extras: [false]
upload-coverage: [false]
include:
- os: ubuntu
python-version: "3.11"
test-extras: true
upload-coverage: true
- os: macos
python-version: "3.10"
test-extras: true
upload-coverage: false
uses: ./.github/workflows/tests_wf.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
test-extras: ${{ matrix.test-extras }}
upload-coverage: ${{ matrix.upload-coverage }}
typing:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install typing dependencies
run: |
python -m pip install .[dev]
- name: Run typing check with mypy
run: mypy