Skip to content

Create GHA to run tests #2

Create GHA to run tests

Create GHA to run tests #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Run Backend Tests

Invalid workflow file

The workflow is not valid. .github/workflows/run_tests.yml (Line: 13, Col: 5): Unexpected value 'runs_on' .github/workflows/run_tests.yml (Line: 13, Col: 5): Required property is missing: runs-on
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/