forked from gongahkia/haus
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (50 loc) · 1.62 KB
/
Copy pathtests.yml
File metadata and controls
66 lines (50 loc) · 1.62 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Poor-CLI Production Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
python-package:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build Python package
run: python -m build
- name: Wheel install smoke test
run: |
python -m venv /tmp/poor-cli-wheel-smoke
/tmp/poor-cli-wheel-smoke/bin/pip install --upgrade pip
/tmp/poor-cli-wheel-smoke/bin/pip install dist/*.whl
/tmp/poor-cli-wheel-smoke/bin/poor-cli --help
/tmp/poor-cli-wheel-smoke/bin/poor-cli install-info
/tmp/poor-cli-wheel-smoke/bin/poor-cli-server --help
- name: Validate Python distributions
run: twine check dist/*
rust-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Rust TUI
run: cargo build --manifest-path poor-cli-tui/Cargo.toml --release --locked
docker-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t poor-cli-smoke .
- name: Verify poor-cli entrypoint
run: docker run --rm poor-cli-smoke --help