-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.39 KB
/
test-python.yaml
File metadata and controls
53 lines (51 loc) · 1.39 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
name: test-python
on:
workflow_call:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
workflow_dispatch:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ${{ fromJSON(inputs.oss) }}
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
- name: Build wheel
uses: ./.github/actions/build-python
with:
target: ${{ matrix.os == 'ubuntu-latest' && 'x86_64' || '' }}
package: prqlc-python
profile: dev
- uses: actions/download-artifact@v4
with:
# `*` covers all targets (we could make this explicit...)
pattern: prqlc-python-${{ runner.os }}-*-dev
path: target/python
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install nox
# run: pipx install nox
run: pip install nox
shell: bash
- name: Cache Nox
uses: actions/cache@v4
with:
path: .nox
key:
nox-${{ hashFiles('prqlc/bindings/prqlc-python/pyproject.toml') }}
- name: Run tests and typing
shell: bash
run: nox -s tests typing -f prqlc/bindings/prqlc-python/noxfile.py