Skip to content

docs(readme): update badge from 'inactive' to 'low activity' to indic… #6

docs(readme): update badge from 'inactive' to 'low activity' to indic…

docs(readme): update badge from 'inactive' to 'low activity' to indic… #6

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Ensure report/ exists
run: mkdir -p reports
- name: Run tests (continue on failure)
run: |
python -m pytest -v --disable-warnings --junitxml=reports/results.xml || true
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-report
path: reports/results.xml