-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
43 lines (41 loc) · 1.24 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
42
43
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
# On-demand trigger: GitHub refuses to re-run a run older than 30 days, and
# both jobs relock against live PyPI, so drift is only observable on a fresh run.
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: poetry
# Relock first: poetry.lock is stale vs pyproject.toml (the merged spec
# bump did not regenerate it).
- run: poetry lock
- run: poetry install
- run: poetry build
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: poetry
# Relock first: poetry.lock is stale vs pyproject.toml (the merged spec
# bump did not regenerate it).
- run: poetry lock
- run: poetry install
# No pytest suite yet; import-smoke the built package so CI fails fast
# on broken codegen/spec dependencies.
- run: poetry run python -c "import utxorpc"