Create GHA to run tests #2
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
name: Run Backend Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs_on: ubuntu-latest | ||
Check failure on line 13 in .github/workflows/run_tests.yml GitHub Actions / Run Backend TestsInvalid workflow file
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies and run tests | ||
run: | | ||
cd zt_backend | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pytest tests/ |