-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.2 KB
/
ci-upstream-dev.yml
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
name: CI upstream development versions
on:
pull_request:
push:
branches: [main]
workflow_dispatch: # allows you to trigger the workflow run manually
schedule:
- cron: "5 2 * * tue" # Tuesdays at 02:05 UTC.
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Set up uv and caching
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-suffix: "${{ matrix.os }}-${{ matrix.python-version }}-upstream-dev"
cache-dependency-glob: "setup.cfg"
version: "0.4.9"
- name: Create venv
run: |
uv venv --seed --python ${{ matrix.python-version }}
- name: Install ${{ matrix.resolution }} dependencies
run: |
uv pip install --resolution highest --prerelease allow .[test,upstream-dev]
- name: Test with pytest (linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
source .venv/bin/activate
pytest --xdoc
- name: Test with pytest (windows)
if: startsWith(matrix.os, 'windows')
run: |
.venv\Scripts\activate
pytest --xdoc