-
Notifications
You must be signed in to change notification settings - Fork 12
64 lines (53 loc) · 1.49 KB
/
ci.yml
File metadata and controls
64 lines (53 loc) · 1.49 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
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
tox:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# testing upper and lower bounds of non EOL Python versions
# according to https://devguide.python.org/versions/
- python-version: "3.10"
toxenv: py310
- python-version: "3.14"
toxenv: py314
name: ${{ matrix.python-version }}
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: python -m pip install --upgrade pip "tox>=4"
- name: Run tox env
run: tox -e ${{ matrix.toxenv }}
package:
runs-on: ubuntu-latest
name: Build sdist
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Poetry
run: python -m pip install --upgrade pip "poetry>=2,<3"
- name: Build sdist
run: poetry build -f sdist
- name: Upload sdist artifact
uses: actions/upload-artifact@v6
with:
name: timing-asgi-sdist
path: dist/*.tar.gz