generated from michealroberts/astral-uv-python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 747 Bytes
/
test.yml
File metadata and controls
44 lines (34 loc) · 747 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
41
42
43
44
name: samps/test
on:
push:
branches:
- main
pull_request:
branches:
- main
- release
- latest
paths-ignore:
- "__pycache__"
- ".pytest_cache"
- ".ruff_cache"
- "docs/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Synchronise uv environment
run: |
uv sync --all-extras --dev
- name: Test w/pytest
run: |
uv run --link-mode=copy pytest test