-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (40 loc) · 1.22 KB
/
bleeding_edge.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
name: CI (bleeding edge)
on:
schedule:
# run this every wednesday at 3 am UTC
- cron: 0 3 * * 3
pull_request:
paths:
- .github/workflows/bleeding_edge.yml
workflow_dispatch:
jobs:
build:
name: py${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version:
- '3.13'
- 3.13+freethreaded
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@3b9817b1bf26186f03ab8277bab9b827ea5cc254 # v3.2.0
- name: Set PYTHON_GIL
if: ${{ endswith( matrix.python-version , '+freethreaded' ) }}
run: |
echo "PYTHON_GIL=0" >> $GITHUB_ENV
- name: Build
run: |
uv venv -p ${{ matrix.python-version }} --python-preference only-managed
uv pip install .
- run: uv pip list
- name: Run tests
run: |
uv run -p ${{ matrix.python-version }} --group test \
pytest --color=yes --doctest-modules
- name: Run concurrency tests
run: |
uv run -p ${{ matrix.python-version }} --group test --group concurrency \
pytest --color=yes --count 100 tests/test_concurrent.py