Skip to content

init repo

init repo #1

Workflow file for this run

name: Main Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'poetry'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run: |
poetry install
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- name: Test with pytest
run: |
poetry run pytest