pytest #44
Workflow file for this run
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
# This workflow will install Python dependencies, and run tests with a single version of Python | |
name: pytest | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test_core: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install pytest-xdist | |
- name: Core tests | |
working-directory: areas/backend | |
run: python3 -m pytest -n auto ./tests/test_core | |
test_api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
working-directory: areas/backend | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: API tests | |
working-directory: areas/backend | |
run: python3 -m pytest -n auto ./tests/test_new_api |