-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (29 loc) · 966 Bytes
/
ci-dev.yml
File metadata and controls
35 lines (29 loc) · 966 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
33
34
35
name: CI (develop)
# Lightweight PR-time test suite that actually gates merges into develop.
# Runs the unit tests under tests/ inside the published shapepipe container
# — no conda bootstrap, no multi-OS matrix. Complements ci-release.yml
# (which is a heavier conda-based suite gating main/master).
on:
pull_request:
branches:
- develop
push:
branches:
- develop
jobs:
unit:
name: Unit tests
runs-on: ubuntu-latest
container:
image: ghcr.io/cosmostat/shapepipe:develop
options: --user root
steps:
- uses: actions/checkout@v4
- name: Reinstall shapepipe from the checkout
# The container ships a snapshot of the repo under /app. Replace it
# with the PR's checkout so tests run against the proposed code.
run: |
pip install --no-deps --force-reinstall -e .
- name: Run unit tests
run: |
pytest tests/unit/ -v --no-cov -p no:warnings