get ci pipelines functional, and switch to ruff linter/formatter #414
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository at the current branch | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- uses: astral-sh/ruff-action@v3 | |
with: | |
version-file: "./requirements-dev.txt" | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository at the current branch | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- uses: jakebailey/pyright-action@v2 | |
with: | |
python-version: "3.11" | |
check-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository at the current branch | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- name: Check cog and repo JSON files against schema | |
uses: ./.github/actions/check-json | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository at the current branch | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- name: Run unit tests | |
run: python3 -m pytest . |