-
-
Notifications
You must be signed in to change notification settings - Fork 63
49 lines (45 loc) · 1.29 KB
/
on_update.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
name: On update
concurrency:
group: development
cancel-in-progress: true
on:
push:
branches-ignore:
- master
tags-ignore:
- v**
permissions:
contents: read
jobs:
run-tox:
name: Tox
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout source at ${{ matrix.platform }}
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install tox
- name: Run tox (Pytype) | Python 3.11
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }}
run: |
tox -e typing-pytype -p all
- name: Run tox (Style, Type checker, Security, Docs) | Python 3.13
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13' }}
run: |
tox -e style,typing-mypy,typing-pyright,security-bandit,docs -p all
- name: Run tox (Tests) | ${{ matrix.platform }}
run: |
tox -e py,py-async