-
Notifications
You must be signed in to change notification settings - Fork 55
50 lines (47 loc) · 1.36 KB
/
ci.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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
unittests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.9", "3.8", "3.7"]
extras: ["", all, soap_api, orjson, cli]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: "${{ matrix.python-version }}"
architecture: x64
- uses: abatilo/[email protected]
with:
poetry-version: "1.1.13"
- run: poetry install --extras ${{ matrix.extras }}
if: matrix.extras != ''
- run: poetry install
if: matrix.extras == ''
- run: poetry run pytest -v
style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
extras: [all]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: "${{ matrix.python-version }}"
architecture: x64
- uses: abatilo/[email protected]
with:
poetry-version: "1.1.13"
- run: poetry install --extras ${{ matrix.extras }}
- run: poetry run flake8
- run: poetry run mypy --ignore-missing-imports .
- run: poetry run isort --check --diff .
- run: poetry run black --check --diff .