22name : Run Unit Tests
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- paths-ignore :
8- - " **.md"
9- - " LICENSE"
10- - " docs/**"
11- - " .github/CODEOWNERS"
12- - " .github/ISSUE_TEMPLATE/**"
13- - " .github/PULL_REQUEST_TEMPLATE.md"
14- - " .github/dependabot.yml"
15- - " .gitignore"
16- - " .git-blame-ignore-revs"
17- - " .gemini/**"
7+ paths :
8+ - ' src/**'
9+ - ' tests/**'
10+ - ' pyproject.toml'
11+ - ' uv.lock'
12+ - ' scripts/run_db_tests.sh'
13+ - ' scripts/docker-compose.test.yml'
14+ - ' .github/workflows/unit-tests.yml'
1815permissions :
1916 contents : read
2017
3431 ports :
3532 - 5432:5432
3633 options : >-
37- --health-cmd pg_isready --health-interval 10s --health-timeout 5s
38- --health-retries 5
34+ --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
3935 mysql :
4036 image : mysql:8.0
4137 env :
@@ -46,12 +42,11 @@ jobs:
4642 ports :
4743 - 3306:3306
4844 options : >-
49- --health-cmd="mysqladmin ping -h localhost -u root -proot"
50- --health-interval=10s --health-timeout=5s --health-retries=5
45+ --health-cmd="mysqladmin ping -h localhost -u root -proot" --health-interval=10s --health-timeout=5s --health-retries=5
5146
5247 strategy :
5348 matrix :
54- python-version : [ " 3.10", " 3.11", " 3.12", " 3.13", " 3.14" ]
49+ python-version : [' 3.10', ' 3.11', ' 3.12', ' 3.13', ' 3.14' ]
5550 steps :
5651 - name : Checkout code
5752 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -68,14 +63,15 @@ jobs:
6863 run : |
6964 echo "$HOME/.cargo/bin" >> $GITHUB_PATH
7065
66+
7167 # Coverage comparison for PRs (only on Python 3.14 to avoid duplicate work)
7268 - name : Checkout Base Branch
7369 if : github.event_name == 'pull_request' && matrix.python-version == '3.14'
7470 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7571 with :
7672 ref : ${{ github.event.pull_request.base.ref || 'main' }}
7773 clean : true
78-
74+
7975 - name : Install dependencies
8076 run : uv sync --locked
8177
0 commit comments