-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 865 Bytes
/
python-tests.yml
File metadata and controls
32 lines (26 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repository code
- name: Checkout git-archeologist
uses: actions/checkout@v4
# 2. Install uv (modern and fast Python package manager)
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
# 3. Install project dependencies from pyproject.toml
- name: Install dependencies
run: uv sync
# 4. Run the test suite using pytest
# Note: REPO_PATH is not required here because tests use temporary fixtures.
# We inject the API key to support potential integration tests.
- name: Run pytest
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: uv run pytest test_server.py