Skip to content

Create python-app.yml #2

Create python-app.yml

Create python-app.yml #2

Workflow file for this run

name: Run Tests & Deploy
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e '.[tests]'
- name: Install packages needed for CI
run: pip install pre-commit
- name: Lint all files
run: pre-commit run --all-files --show-diff-on-failure
- name: Run tests
run: pytest tests