Merge pull request #240 from hrw/main #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ dev, main ] | |
pull_request: | |
branches: [ dev, main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12.0 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12.0 | |
- name: Create virtual environment | |
run: | | |
python -m venv venv | |
. venv/bin/activate | |
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV | |
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements_test.txt | |
- name: Run tests | |
run: | | |
PYTHONPATH=${{ github.workspace }} pytest tests -v |