fix repository #7
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: run tests | |
on: | |
pull_request: | |
paths: | |
- '**.py' | |
- '**.toml' | |
- '**.lock' | |
push: | |
paths: | |
- '**.py' | |
- '**.toml' | |
- '**.lock' | |
branches: | |
- main | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pdm install -dG test | |
- name: Add environment variables | |
run: cp .env.example .env | |
- name: Run tests | |
run: pdm run pytest --cov=src |