-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (34 loc) · 1.15 KB
/
oldest-support.yaml
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
# Copyright 2025 National Technology & Engineering Solutions of Sandia,
# LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the
# U.S. Government retains certain rights in this software.
# This should mirror regression tests. Ideally we find a way in the future to fold the two together
name: Test Oldest Dependencies
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
UV_SYSTEM_PYTHON: 1
jobs:
test-oldest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Use uv since it has easy lowest resolution
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9' # Find a way to globally define our minimum python once
- name: Install dependencies with minimum versions
run: |
uv sync --resolution lowest-direct --extra dev
- name: Run tests
run: |
uv run --resolution lowest-direct pytest ./tests