-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.33 KB
/
Copy pathpython.yml
File metadata and controls
45 lines (39 loc) · 1.33 KB
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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv and set the python version
# d9e0f98 = 6.5.0
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1
with:
python-version: ${{ matrix.python-version }}
- name: lint and format (ruff)
run: |
# Check formatting
uv run ruff format --check rpkiclientweb tests
# Run linter with GitHub Annotations
uv run ruff check rpkiclientweb tests
- name: test
run: uv run pytest --cov rpkiclientweb --cov-report html -qq -o console_output_style=count -p no:sugar tests
- name: package and test packaging
run: |
uv build
uv run twine check dist/*
uv run check-manifest
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
path: |
dist