-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.11 KB
/
main.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linters and Unit tests
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ main ]
jobs:
call-inclusive-naming-check:
name: Inclusive naming
uses: canonical/inclusive-naming/.github/workflows/woke.yaml@main
with:
fail-on-error: "true"
lint-unit:
name: Lint Unit
uses: charmed-kubernetes/workflows/.github/workflows/lint-unit.yaml@main
with:
python: "['3.8', '3.9', '3.10', '3.11']"
needs:
- call-inclusive-naming-check
test-with-uv:
name: continuous-integration
runs-on: ubuntu-24.04
strategy:
matrix:
python-version:
- "3.8"
- "3.10"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run:
tox -e unit,lint