Skip to content

v6.5.3

v6.5.3 #1491

Workflow file for this run

name: CI
on:
release:
types: [published]
pull_request:
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
env:
LANG: C.UTF-8
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: "x64"
- name: Install pip requirements
run: |
pip install pipenv
pip install pytest-cov
pipenv install --dev --system
- name: Collect static
run: python example_project/manage.py collectstatic --noinput
- name: Run Python tests
run: pytest -x --cov=. --cov-report=xml -vv -n auto
env:
SELENIUM_WEBDRIVER: chrome-headless
SELENIUM_HEADLESS: True
- name: Upload coverage to Codecov
if: github.repository_owner_id == env.OCADO_TECH_ORG_ID
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ env.COVERAGE_REPORT }}