-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 948 Bytes
/
Copy pathpython-test.yml
File metadata and controls
49 lines (41 loc) · 948 Bytes
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
name: Run tests
permissions:
contents: read
on:
push:
branches: [main]
tags:
- v*
pull_request:
branches: [main]
jobs:
test-python-310:
uses: ./.github/workflows/test-runner.yml
with:
python-version: "3.10"
secrets: inherit
test-python-312:
uses: ./.github/workflows/test-runner.yml
with:
python-version: "3.12"
secrets: inherit
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup uv and dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv pip install -r dev-requirements.txt
npm ci
- name: Lint
run: |
source .venv/bin/activate
npm run lint