-
Notifications
You must be signed in to change notification settings - Fork 57
41 lines (34 loc) · 845 Bytes
/
ci.yaml
File metadata and controls
41 lines (34 loc) · 845 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
# SPDX-FileCopyrightText: technologydata contributors
#
# SPDX-License-Identifier: MIT
name: Technologydata prototype CI
on:
push:
branches: [prototype-2]
pull_request:
branches: [prototype-2]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/uv.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install package and dependencies
run: |
python -m pip install uv
uv lock
uv sync
- name: Run unit tests
run: |
uv run pytest