-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 814 Bytes
/
ci.yaml
File metadata and controls
40 lines (32 loc) · 814 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
name: Test with uv
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y iputils-ping
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.uv/bin" >> $GITHUB_PATH
- name: Install dependencies with uv
run: |
uv venv --python 3.8
source .venv/bin/activate
uv pip install -e ".[dev]"
- name: Run tests
run: |
source .venv/bin/activate
python -m pytest --cov-report xml