Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55e6004

Browse files
committed
test workflow
1 parent 7b0ed05 commit 55e6004

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Run linklint CI
2+
3+
name: "Test Suite"
4+
5+
on:
6+
push:
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
concurrency:
18+
group: "${{ github.workflow }}-${{ github.ref }}"
19+
cancel-in-progress: true
20+
21+
env:
22+
PIP_DISABLE_PIP_VERSION_CHECK: 1
23+
24+
jobs:
25+
tests:
26+
name: "Test ${{ matrix.python-version }} on ${{ matrix.os }}"
27+
runs-on: "${{ matrix.os }}-latest"
28+
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os:
33+
- ubuntu
34+
- macos
35+
- windows
36+
python-version:
37+
- 3.12
38+
- 3.13
39+
- 3.14
40+
41+
steps:
42+
- name: "Check out the repo"
43+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
44+
with:
45+
persist-credentials: false
46+
47+
- name: "Set up Python"
48+
id: "setup-python"
49+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
50+
with:
51+
python-version: "${{ matrix.python-version }}"
52+
53+
- name: "Install dependencies"
54+
run: |
55+
python -m pip install .[dev]
56+
57+
- name: "Run tests"
58+
run: |
59+
python -m coverage run --branch -m pytest
60+
python -m coverage report --show-missing --skip-covered
61+
62+
quality:
63+
name: "Quality checks"
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: "Check out the repo"
67+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
68+
with:
69+
persist-credentials: false
70+
71+
- name: "Set up Python"
72+
id: "setup-python"
73+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
74+
with:
75+
python-version: 3.12
76+
77+
- name: "Install dependencies"
78+
run: |
79+
python -m pip install .[dev]
80+
81+
- name: "Run checks"
82+
run: |
83+
ty check
84+
ruff check
85+
ruff format --check

0 commit comments

Comments
 (0)