-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 972 Bytes
/
python-app.yml
File metadata and controls
39 lines (30 loc) · 972 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# Updating to use `uv`. Versions pinned are current as of May 4, 2026.
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
# Install a specific version of uv.
version: "0.11.8"
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tests
# Run test using uv
run: uv run -m tests