-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.05 KB
/
_e2e.yaml
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
name: e2e Test
on:
workflow_call:
inputs:
os:
required: true
type: string
python-version:
required: true
type: string
use-cfg:
required: false
type: string
default: ''
jobs:
e2e:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- if: ${{ inputs.use-cfg != '' }}
uses: './.github/workflows/setup-custom-cfg'
with:
siibra-cfg-ref: ${{ inputs.use-cfg }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -U .
pip install -r requirements-test.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install test dependencies
run: pip install pytest pytest-cov coverage
- name: Run test with pytest
shell: bash
run: pytest -rx e2e