forked from ValvePython/steam
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.48 KB
/
check.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: 检查代码
on:
push:
paths:
- 'pyproject.toml'
- '**/*.py'
- 'Taskfile.yml'
- '.github/workflows/*.yml'
- '.github/dependabot.yml'
pull_request:
paths:
- 'pyproject.toml'
- '**/*.py'
- 'Taskfile.yml'
- '.github/workflows/*.yml'
- '.github/dependabot.yml'
permissions:
contents: read
jobs:
pytest:
name: PyTest
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Python version
run: uv run -m tools.set_python_version
- name: Run PyTest
run: task test
- name: Upload to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: "${{ matrix.os }}_${{ env.PYTHON_VERSION }}"
run: |
coveralls --service=github
ruff:
name: Ruff
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Ruff
run: task check -- --no-fix --output-format=github