forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.1 KB
/
Copy pathpipeline-tests.yml
File metadata and controls
41 lines (34 loc) · 1.1 KB
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
33
34
35
36
37
38
39
40
41
name: Pipeline tests
on:
# `main` only. Matching every branch here would double every PR's CI:
# pushing to a PR branch fires BOTH the push event and the pull_request
# event for the same commit, running each job twice for an identical
# result. The pull_request trigger below already covers branches.
#
# This run is still worth keeping for main itself - it is post-merge
# validation against the real merge commit, which is exactly what caught
# the flaky staleness boundary test in #32 (green on the PR, red on the
# merge).
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pipeline
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Lint
run: python -m ruff check .
- name: Check formatting
run: python -m ruff format --check .
- name: Run tests
run: python -m pytest -v