forked from mushorg/conpot
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 789 Bytes
/
Copy pathpython.yml
File metadata and controls
27 lines (25 loc) · 789 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
name: Code tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: "x64"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install system packages
run: sudo apt-get install gcc ipmitool
- name: Install python dependencies
run: uv sync --frozen --group dev
- name: Test with pytest pytest-cov
run: |
uv run pytest --junitxml=junit/test-results.xml --cov=conpot --cov-report=xml --cov-report=html