-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (30 loc) · 726 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (30 loc) · 726 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
name: CI
on:
pull_request:
branches:
- main
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
env:
POETRY_VERSION: 1.8.3
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: "Setup: Python 3.11"
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry==$POETRY_VERSION uv
- name: Run unit tests
run: |
uv sync
uv run pytest tests