Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 fix bug in CI (again) #18

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
name: Test Python ${{ matrix.py }} - KubeRay ${{ matrix.kuberay }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
Expand All @@ -31,6 +31,9 @@ jobs:
- "3.11"
- "3.10"
- "3.9"
kuberay:
- "1.1.0"
- "1.2.2"
steps:
- uses: actions/checkout@v4
- name: Install uv
Expand All @@ -53,7 +56,7 @@ jobs:
#- uses: mxschmitt/action-tmate@v3
- name: Run tests
env:
PYTEST_KUBERAY_VERSIONS: "1.1.0,1.2.2" # will run tests for all these KubeRay versions
PYTEST_KUBERAY_VERSIONS: "${{ matrix.kuberay }}"
run: uv run pytest -v .

lint:
Expand Down Expand Up @@ -107,6 +110,8 @@ jobs:
- name: Set up Python
run: uv python install 3.11.9
- name: Generate Version
run: uv run hatch version $(dunamai from any --style pep440)
run: export VERSION=$(uv run dunamai from any --style pep440) && echo "Version is $VERSION" && echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Replace version in code
run: uv run hatch version $VERSION
- name: Publish to PyPI
run: uv publish
Loading