-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 793 Bytes
/
test.yml
File metadata and controls
42 lines (36 loc) · 793 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
name: Unit Tests
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/test.yml'
- 'pyproject.toml'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/test.yml'
- 'pyproject.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Astral UV
uses: astral-sh/setup-uv@v7.2.1
with:
python-version: "3.12"
- name: Install kube-galaxy
shell: bash
run: |
uv tool install tox --with tox-uv
- name: Run unit tests
run: |
tox -e unit