-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-pipes-java] add tests in CI
- Loading branch information
1 parent
e033aba
commit 4e3de4c
Showing
5 changed files
with
513 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: dagster-pipes-java | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
paths: | ||
- "libraries/pipes/implementations/java/**" | ||
- ".github/workflows/libraries-pipes-java.yml" | ||
|
||
defaults: | ||
run: | ||
working-directory: ./libraries/pipes/implementations/java/dagster-pipes-java/ | ||
|
||
jobs: | ||
integration-tests: | ||
name: "Dagster Integration Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Run tests | ||
run: | | ||
nix develop --command \ | ||
bash -c "uv run pytest" |
8 changes: 7 additions & 1 deletion
8
libraries/pipes/implementations/java/dagster-pipes-java/nix/shells/default/default.nix
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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
pkgs, | ||
mkShell, | ||
... | ||
}: | ||
let python = pkgs.python310; in | ||
mkShell { | ||
# Create your shell | ||
packages = with pkgs; [ | ||
zsh | ||
jdk8 | ||
uv | ||
python | ||
]; | ||
shellHook = '' | ||
exec zsh | ||
export PYTHONPATH=`pwd`/$VENV/${python.sitePackages}/:$PYTHONPATH | ||
export LD_LIBRARY_PATH=${lib.makeLibraryPath [stdenv.cc.cc]} | ||
export UV_PYTHON=${python}/bin/python | ||
''; | ||
} |
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.