-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (42 loc) · 946 Bytes
/
main.yml
File metadata and controls
46 lines (42 loc) · 946 Bytes
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
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Run Tox tests
jobs:
tox_test:
name: Tox test
steps:
- uses: actions/checkout@v4
- name: Run Tox tests
id: test
uses: fedora-python/tox-github-action@main
with:
tox_env: ${{ matrix.tox_env }}
strategy:
fail-fast: false
matrix:
tox_env: [py39, py310, py311, py312, py313, py314, pypy3]
# Use GitHub's Linux Docker host
runs-on: ubuntu-latest
lints:
name: Lints
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install tox
run: python -m pip install tox
- name: Run ruff format
run: |
tox -e ruff-format
- name: Run ruff check
run: |
tox -e ruff-check
- name: Type Checking (mypy)
run: |
tox -e mypy
runs-on: ubuntu-latest