Skip to content

Add CI testing workflow #3

Add CI testing workflow

Add CI testing workflow #3

Workflow file for this run

name: Run tests
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: 'Setup Chrome and chromedriver'
uses: nanasess/setup-chromedriver@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
- name: Install dependencies
run: |
source .venv/bin/activate
uv pip install --upgrade pip
uv pip install -r requirements.txt
uv pip install -r requirements-dev.txt
- name: Run unit tests
run: |
source .venv/bin/activate
python -m pytest tests/