Skip to content

Commit e3754aa

Browse files
ci: simplify to single Python version (3.11)
- Remove matrix build (3.9, 3.12) for faster CI - Focus on Python 3.11 (Docker image version) - Main usage is via Docker wrapper, not direct pip install - Reduces CI time while maintaining quality Jobs: test → build-verify → docker
1 parent 996e447 commit e3754aa

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build-cli-image.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,61 @@ env:
3434
IMAGE_NAME: bootcs-dev/bootcs-cli
3535

3636
jobs:
37+
test:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: "3.11"
47+
cache: "pip"
48+
49+
- name: Install dependencies
50+
run: |
51+
pip install -e ".[dev]"
52+
53+
- name: Lint with ruff
54+
run: |
55+
ruff check bootcs tests
56+
57+
- name: Check formatting with black
58+
run: |
59+
black --check bootcs tests
60+
61+
- name: Run tests with coverage
62+
run: |
63+
pytest -v --cov=bootcs --cov-report=term-missing
64+
65+
build-verify:
66+
runs-on: ubuntu-latest
67+
needs: test
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v4
71+
72+
- name: Set up Python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: "3.11"
76+
77+
- name: Build package
78+
run: |
79+
pip install build
80+
python -m build
81+
82+
- name: Install and verify package
83+
run: |
84+
pip install dist/*.whl
85+
bootcs-cli --version
86+
bootcs-cli --help
87+
3788
build:
3889
runs-on: ubuntu-latest
90+
needs: build-verify
91+
if: github.event_name != 'pull_request'
3992
permissions:
4093
contents: read
4194
packages: write

0 commit comments

Comments
 (0)