Skip to content

Add GitHub configuration files and CI workflow #1

Add GitHub configuration files and CI workflow

Add GitHub configuration files and CI workflow #1

Workflow file for this run

name: Lint and Test
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest -q
- name: Lint with flake8
run: |
pip install flake8
flake8 .