-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 891 Bytes
/
Copy pathuv.yml
File metadata and controls
40 lines (31 loc) · 891 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
name: Python uv Test
on:
# every day-of-month 1st at 00:00 UTC
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
permissions:
contents: read
jobs:
check-links:
uses: ./.github/workflows/link-check.yml
build:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: python-algorithm
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Setup uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
- name: Install dependencies
run: uv sync --locked --group test
- name: Test
run: uv run --no-sync pytest