-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (53 loc) · 1.31 KB
/
test.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
name: Test
on:
- push
- pull_request
- workflow_dispatch
jobs:
pytest:
name: ${{ matrix.name }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: Salt 3007
env: py3-salt3007-crypt42
python: "3.10"
- name: Salt 3006
env: py3-salt3006-crypt39
python: "3.10"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: True
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: uv sync --dev
- run: uv run tox -e ${{ matrix.env }} -- -vv
ruff-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: True
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: uv sync --dev
- run: uv run ruff check --no-fix --diff
ruff-format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: True
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: uv sync --dev
- run: uv run ruff format --diff --check