Skip to content

Add run test workflow #1

Add run test workflow

Add run test workflow #1

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run Pytest
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.16'
- name: Install Dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements/dev.txt
- name: Run Pytest
run: |
source venv/bin/activate
PYTHONPATH=$PYTHONPATH:app/ pytest --maxfail=1 --exitfirst