-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (57 loc) · 1.61 KB
/
Copy pathrunrms.yml
File metadata and controls
70 lines (57 loc) · 1.61 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: runrms
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
# Run nightly to check that tests are working with latest dependencies
- cron: "0 0 * * *"
permissions:
contents: read
pull-requests: write
jobs:
check-runrms:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- name: Install Ubuntu dependencies
run: |
sudo apt-get update
sudo apt-get install libegl1
- name: Checkout commit locally
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@f98e06938123ccabd21905ea5d0069192241f9f1 # v8.3.1
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
if [ "${{ github.event_name }}" = "schedule" ]; then
uv sync --all-extras --upgrade
else
uv sync --all-extras --frozen
fi
- name: List all installed packages
run: uv pip freeze
- name: Ruff check
if: ${{ always() }}
run: uv run ruff check
- name: Ruff format
if: ${{ always() }}
run: uv run ruff format --check
- name: Check typing with mypy
if: ${{ always() }}
run: uv run mypy src tests
- name: Run tests
if: ${{ always() }}
run: uv run pytest -n auto tests -m "not onprem" --cov --cov-report term-missing