yaml config #31
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: tests | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '.github/workflows/tests.yml' | |
- 'src/olm/**.py' | |
- 'pyproject.toml' | |
- 'uv.lock' | |
pull_request: | |
paths: | |
- '.github/workflows/tests.yml' | |
- 'src/olm/**.py' | |
- 'pyproject.toml' | |
- 'uv.lock' | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
run: curl -LsSf https://astral.sh/uv/0.4.7/install.sh | sh | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Run tests | |
run: uv run pytest |