Feature/sqlite repo #172
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: Staged CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.12' | |
- name: Run Composite Action to Install Packages | |
uses: ./.github/actions | |
- name: Run tests | |
run: make test | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Run Composite Action to Install Packages | |
uses: ./.github/actions | |
- name: Run Pre-commit | |
run: | | |
poetry install --no-root --all-extras | |
poetry run pre-commit run --all-files |