forked from MikeBrink/python-picnic-api
-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (42 loc) · 1.21 KB
/
ci.yaml
File metadata and controls
56 lines (42 loc) · 1.21 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
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [3.13,3.14]
uv-version: [0.6.6]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv ${{ matrix.uv-version }}
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install uv==${{ matrix.uv-version }}
- name: Install dependencies
shell: bash
run: uv sync
- name: Test with pytest
env:
USERNAME: ${{ secrets.PICNIC_USERNAME }}
PASSWORD: ${{ secrets.PICNIC_PASSWORD }}
COUNTRY_CODE: ${{ secrets.PICNIC_COUNTRY_CODE }}
run: |
uv run pytest tests/ --cov --cov-report=xml
- name: Lint with ruff
run: |
uv run ruff check --output-format=github --ignore FIX
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}