Skip to content

add github action to test #1

add github action to test

add github action to test #1

Workflow file for this run

# This workflow will install Python dependencies, run tests and ruff with a single version of Python
name: Basic tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff check --output-format=github .
continue-on-error: false
- name: Test with pytest
run: |
pip install pytest
pytest