CI #19
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: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "31 10 * * 4" | |
workflow_dispatch: | |
jobs: | |
# Check linting, formating, types, etc. | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- uses: extractions/setup-just@v1 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install pre-commit | |
- name: Lint | |
run: just lint | |
# Run tests | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- uses: extractions/setup-just@v1 | |
- name: Install Dependencies | |
run: | | |
pip install .[test] | |
- name: Test | |
run: just test |