generated from Hochfrequenz/python_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (28 loc) · 1014 Bytes
/
checks.yaml
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
name: "checks"
# Runs your workflow when activity on a pull request in the workflow's repository occurs.
# If no activity types are specified, the workflow runs when a pull request is opened, reopened, or when the head branch of the pull request is updated.
on: [ pull_request ]
jobs:
checks:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.12" ]
tox-env: [ "test", "lint", "formatcheck", "typecheck", "test_packaging", "dev" ]
name: ${{ matrix.tox-env }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run ${{ matrix.tox-env }} via Tox
run: |
tox -e ${{ matrix.tox-env }}