add new repo structure #1
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: main # Comment this line if you want to test the CI before opening a PR | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version-file: ${{ github.workspace }}/.python-version | |
cache: poetry | |
cache-dependency-path: poetry.lock | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Typecheck | |
run: | | |
pyright . | |
- name: Lint | |
run: | | |
ruff check . | |
- name: Test | |
run: | | |
python3 -m pytest tests/ |