-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.35 KB
/
tests.yml
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
name: Tests
on:
push:
branches:
- main
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup python and uv
uses: deargen/workflows/actions/setup-python-and-uv@master
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: ripgrep
version: 1.0
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
uv pip install -e .
- name: Run pytest
uses: deargen/workflows/actions/run-pytest@master
doctest:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup python and uv
uses: deargen/workflows/actions/setup-python-and-uv@master
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: ripgrep
version: 1.0
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
uv pip install -e .
- name: Run doctest
uses: deargen/workflows/actions/run-doctest@master