Skip to content

Changehub/change1 git workflow #4

Changehub/change1 git workflow

Changehub/change1 git workflow #4

Workflow file for this run

name: Run Web & API Tests on PR Merge will trigger tests on CI
on:
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Playwright Browsers
run: |
source .venv/bin/activate
playwright install --with-deps
- name: Run API Tests
run: |
source .venv/bin/activate
pytest -m api --tb=short --disable-warnings
- name: Run Web Tests (Headless)
run: |
source .venv/bin/activate
pytest -m web --tb=short --disable-warnings