142b074a59
Test / test (3.11) (pull_request) Successful in 1m51s
Test / test (3.13) (pull_request) Successful in 1m47s
Test / test (3.12) (pull_request) Successful in 1m52s
Test / all-required (pull_request) Successful in 5s
[Do] Manual ack
sop-checklist / all-items-acked SOP checklist acknowledged by sdk-dev
Adds a single CI / all-required status check that depends on the test job. This enables branch protection to be configured with a single required-status-check entry rather than enumerating each matrix variant. Addresses: molecule-ai/molecule-sdk-python#11 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
44 lines
956 B
YAML
44 lines
956 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.11', '3.12', '3.13']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: pip install -e ".[test]"
|
|
|
|
- name: Run tests
|
|
run: python -m pytest tests/
|
|
|
|
- name: Lint
|
|
run: pip install ruff && ruff check molecule_agent/ molecule_plugin/
|
|
|
|
all-required:
|
|
name: all-required
|
|
needs: [test]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check test result
|
|
run: |
|
|
result="${{ needs.test.result }}"
|
|
if [ "$result" != "success" ]; then
|
|
echo "Required job test failed (result: $result)"
|
|
exit 1
|
|
fi
|
|
echo "All required jobs passed"
|