Skip to content

Merge pull request #1 from pythoninthegrasses/release-please--branche… #8

Merge pull request #1 from pythoninthegrasses/release-please--branche…

Merge pull request #1 from pythoninthegrasses/release-please--branche… #8

Workflow file for this run

name: Run pytest
on:
push:
branches:
- main
- master
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/pytest.yml'
pull_request:
branches:
- main
- master
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/pytest.yml'
workflow_dispatch:
jobs:
test:
runs-on: blacksmith-4vcpu-ubuntu-2404
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync --all-extras
- name: Run unit tests
run: uv run pytest -s
- name: Run e2e tests
if: github.event_name != 'pull_request'
env:
TAILSCALE_API_KEY: ${{ secrets.TAILSCALE_API_KEY }}
TAILSCALE_TAILNET: ${{ secrets.TAILSCALE_TAILNET }}
run: uv run pytest -m e2e -s