Skip to content

tests

tests #6

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Run setup script
run: |
/bin/bash .devcontainer/setup.sh ${{ github.workspace }}
export VENV_PATH=$(poetry env info -p)
echo "VENV_PATH=$VENV_PATH" >> $GITHUB_ENV
- name: Run unit tests
run: |
${{ env.VENV_PATH }}/bin/pytest tests/unit/*.py -s
- name: Setup integration tests
run: bash tests/integration/start.sh
- name: Run integration tests
run: |
${{ env.VENV_PATH }}/bin/pytest tests/integration/test_all.py -s