-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f1de50
commit 7d89999
Showing
10 changed files
with
137 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ env: | |
|
||
jobs: | ||
test: | ||
name: Test Python ${{ matrix.py }} - KubeRay ${{ matrix.kuberay }} | ||
name: Test Python ${{ matrix.py }} - Ray ${{ matrix.ray }} - Dagster ${{ matrix.dagster }} - KubeRay ${{ matrix.kuberay }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -31,20 +31,16 @@ jobs: | |
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
ray: | ||
- "2.37.0" | ||
- "2.24.0" | ||
dagster: | ||
- "1.8.12" | ||
kuberay: | ||
- "1.1.0" | ||
- "1.2.2" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 0.4.18 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} | ||
- name: Install dependencies | ||
run: uv sync --all-extras --dev | ||
- uses: azure/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
@@ -53,14 +49,27 @@ jobs: | |
with: | ||
start: false | ||
driver: docker | ||
#- uses: mxschmitt/action-tmate@v3 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 0.4.25 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} && uv python pin ${{ matrix.py }} && uv venv --python ${{ matrix.py }} | ||
- name: Override ray==${{ matrix.ray }} dagster==${{ matrix.dagster }} | ||
id: override | ||
run: uv add --no-sync "ray[all]==${{ matrix.ray }}" "dagster==${{ matrix.dagster }}" || echo SKIP=1 >> $GITHUB_OUTPUT | ||
- name: Install dependencies | ||
run: uv sync --all-extras --dev | ||
if: ${{ steps.override.outputs.SKIP != '1' }} | ||
- name: Run tests | ||
env: | ||
PYTEST_KUBERAY_VERSIONS: "${{ matrix.kuberay }}" | ||
run: uv run pytest -v . | ||
if: ${{ steps.override.outputs.SKIP != '1' }} | ||
|
||
lint: | ||
name: lint ${{ matrix.py }} - ${{ matrix.os }} | ||
name: Lint ${{ matrix.py }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -76,10 +85,10 @@ jobs: | |
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 0.4.18 | ||
version: 0.4.25 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} && uv python pin ${{ matrix.py }} | ||
- name: Install dependencies | ||
run: uv sync --all-extras --dev | ||
- name: Run pre-commit hooks | ||
|
@@ -108,10 +117,12 @@ jobs: | |
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 0.4.18 | ||
version: 0.4.25 | ||
enable-cache: true | ||
- name: Set up Python | ||
run: uv python install 3.11.9 | ||
run: uv python install $PYTHON_VERSION && uv python pin $PYTHON_VERSION | ||
env: | ||
PYTHON_VERSION: 3.11.9 | ||
- name: Generate Version | ||
run: export VERSION=$(uv run dunamai from any --style pep440) && echo "Version is $VERSION" && echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Replace version in code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.