Skip to content

Commit eaa61e8

Browse files
committed
Use uv
1 parent 5e00686 commit eaa61e8

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed

.github/workflows/basic_uv.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Basic (uv)"
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 0 1 * *" # Midnight every month (UTC)
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup uv
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
enable-cache: true
21+
22+
- name: Setup python
23+
run: |
24+
uv python install
25+
uv run -- python -V
26+
27+
- name: Install python dependencies
28+
run: uv sync --locked
29+
30+
- name: Run test
31+
run: uv run -- pytest basic.py

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
[project]
2+
name = "tutorial-github-actions"
3+
version = "0.1.0"
4+
description = "A quickstart and reference for GitHub Actions to help you get up and running fast."
5+
readme = "README.md"
6+
license = "MIT"
7+
license-files = ["LICENSE"]
8+
requires-python = ">=3.13"
9+
dependencies = [
10+
"pytest==8.3.5",
11+
]
12+
113
[tool.pytest.ini_options]
214
addopts = "--color=yes"

uv.lock

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)