-
Notifications
You must be signed in to change notification settings - Fork 22
58 lines (53 loc) · 1.63 KB
/
tests.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
name: Continuous integration
on:
push:
branches:
- master
- b0.*
pull_request:
branches:
- master
- b0.*
jobs:
test:
name: Run checks
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
- os: windows-latest
python-version: "3.10"
- os: macos-latest
python-version: "3.10"
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v8
- run: echo "ENABLE=1" >> $GITHUB_OUTPUT
if: ${{ matrix.os == 'ubuntu-latest' }}
name: Enable extended checks
id: extended-checks
- run: echo "ENABLE=1" >> $GITHUB_OUTPUT
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
name: Enable sphinx check
id: extended-checks-sphinx
- run: poetry install
if: ${{ !steps.extended-checks-sphinx.outputs.ENABLE }}
- run: poetry install -E docs
if: ${{ steps.extended-checks-sphinx.outputs.ENABLE }}
- run: poetry run poe tests_unit
- run: poetry run poe checks_codestyle
- run: poetry run poe checks_typing
if: ${{ steps.extended-checks.outputs.ENABLE }}
- run: poetry run poe checks_license
if: ${{ steps.extended-checks.outputs.ENABLE }}
- run: poetry run poe sphinx -W
if: ${{ steps.extended-checks-sphinx.outputs.ENABLE }}