-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 994 Bytes
/
tests.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
name: BinomialBias CI tests
on: [pull_request]
jobs:
install_and_test:
timeout-minutes: 8
strategy:
fail-fast: false
max-parallel: 8
matrix:
os: ['ubuntu-latest']
python-version: [ '3.10']
runs-on: ${{ matrix.os }}
name: Install and test
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install BinomialBias
run: pip install -e .[app]
- name: Install tests
working-directory: ./tests
run: pip install pytest
- name: Run API tests
working-directory: ./tests
run: pytest --durations=0 --junitxml=test-results.xml # Run actual tests
- name: Upload test results
uses: actions/upload-artifact@v1
if: failure()
with:
name: test_results
path: tests/test-results.xml