-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (59 loc) · 1.61 KB
/
Copy pathtest.yml
File metadata and controls
67 lines (59 loc) · 1.61 KB
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
62
63
64
65
66
67
name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
jobs:
# Build Python package
build:
uses: ewoks-kit/.github/.github/workflows/python-build.yml@main
# Run tests
tests:
needs: build
uses: ewoks-kit/.github/.github/workflows/python-tests.yml@main
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
pytest-args: >-
-v -ra -W error
${{ matrix.extra-pytest-warnings }}
enable-coverage: ${{ matrix.enable-coverage }}
jupyter-platform-dirs: "1"
codecov-flags: "unit"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: "3.10"
enable-coverage: "true"
extra-pytest-warnings: ""
- os: ubuntu-latest
python-version: "3.14"
enable-coverage: "false"
extra-pytest-warnings: ""
- os: windows-latest
python-version: "3.10"
enable-coverage: "false"
extra-pytest-warnings: ""
- os: windows-latest
python-version: "3.14"
enable-coverage: "false"
extra-pytest-warnings: ""
# Run linter / checks
checks:
uses: ewoks-kit/.github/.github/workflows/python-check.yml@main
with:
enable-black: "false"
enable-flake8: "false"
enable-isort: "false"
enable-ruff: "true"
# Build documentation
docs:
needs: build
uses: ewoks-kit/.github/.github/workflows/python-docs.yml@main