Skip to content

Commit

Permalink
[dagster-pipes-java] add tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgafni committed Dec 25, 2024
1 parent e033aba commit 4e3de4c
Show file tree
Hide file tree
Showing 5 changed files with 513 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/libraries-pipes-java.yml
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"
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
'';
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "dagster-pipes-java"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = [
"dagster-aws>=0.25.0",
"dagster>=1.8.9",
Expand Down
Loading

0 comments on commit 4e3de4c

Please sign in to comment.