JeffYang52415's picture
ci: add github action
54b075d unverified
raw
history blame
579 Bytes
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install Poetry
run: |
pipx install poetry
- name: Install dependencies
run: poetry install
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
- name: Run tests
run: poetry run pytest