Skip to content

Commit

Permalink
Add Python 3.8 for minimal and maximal version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Nov 12, 2024
1 parent 6a0e672 commit 09fb4a7
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/test-kr8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ concurrency:
cancel-in-progress: true

jobs:
deps:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Install kr8s
run: pip install -e .
- name: Ensure kr8s works
run: python -c "import kr8s; print(kr8s.get('nodes'))"
test:
runs-on: ubuntu-latest
timeout-minutes: 45
Expand Down Expand Up @@ -64,3 +50,23 @@ jobs:
- name: Debug k8s resources
if: always()
run: kubectl get all -A

minimal-deps:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
# Test the minimal and maximal Python versions only
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Install kr8s
run: pip install -e .
- name: Ensure kr8s works
run: python -c "import kr8s; print(kr8s.get('nodes'))"

0 comments on commit 09fb4a7

Please sign in to comment.