-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (35 loc) · 1.06 KB
/
workflow-test.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
---
name: Test
on:
workflow_call:
inputs:
os:
required: true
type: string
pyver:
required: true
type: string
jobs:
test:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.pyver }}
- uses: actions/download-artifact@v4
with:
name: dist-${{ inputs.os }}-${{ inputs.pyver }}
- uses: jannekem/run-python-script-action@v1
with:
script: |
import os
import subprocess
fn = [f for f in os.listdir() if f.endswith('whl') and f.startswith('tomato')][0]
subprocess.run(["pip", "install", f"{fn}[testing]"])
- name: Print version
shell: bash
run: tomato --version
- name: Run pytest
shell: bash
run: pytest -vvv --durations=0