-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1.25 KB
/
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
37
38
39
40
# Runs pytest on the matrix of supported platforms any Python versions.
name: Test
on:
pull_request:
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Constrain to single version to simplify install from wheels
os: ['ubuntu-latest']
python: ['3.7']
# os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
# python: ['3.7', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Download wheels from OpenAssetIO main
uses: dawidd6/action-download-artifact@v2
with:
workflow: build-wheels.yml
workflow_conclusion: success
name: openassetio-wheels
repo: OpenAssetIO/OpenAssetIO
path: deps
pr: 1037
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: |
# Use wheels from feature branch for intermediate testing
python -m pip install ./deps/openassetio-*cp37*-manylinux_*_x86_64.whl
# python -m pip install -r requirements.txt
python -m pip install -r tests/requirements.txt
python -m pip install .
python -m pytest -v ./tests