-
Notifications
You must be signed in to change notification settings - Fork 15
31 lines (28 loc) · 1.06 KB
/
tests-unit.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
name: Unit tests
on: [push, pull_request]
env:
CODECHECK_PY_VER: 3.9
jobs:
unit-tests:
name: Pytest
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python-${{ env.CODECHECK_PY_VER }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.CODECHECK_PY_VER }}
- name: Tests
run: |
pip3 install -r requirements.txt -r tests/requirements.txt && \
PYTHONPATH=. python3 -m birdseye.baseline --help \
PYTHONPATH=. python3 -m birdseye.dqn --help && \
PYTHONPATH=. python3 -m birdseye.mcts --help && \
PYTHONPATH=. python3 ./run_birdseye.py -h && \
PYTHONPATH=. pytest -v -vv --cov-report term-missing --cov=. --cov=birdseye -c .coveragerc && \
PATH=/home/runner/.local/bin:$PATH coverage report && \
PATH=/home/runner/.local/bin:$PATH coverage xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: github.repository == 'iqtlabs/birdseye'