-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.33 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
name: Tests
on:
push:
branches:
- main
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
paths_ignore: '["**/README.md", "**/docs/**"]'
# do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
doctest:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: deargen/workflows/actions/setup-python-and-uv@master
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
bash scripts/install.sh
- name: Run doctest
uses: deargen/workflows/actions/run-doctest@master