forked from dagster-io/community-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.68 KB
/
libraries-pipes-rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: dagster-pipes-rust
on:
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
- "libraries/pipes/tests/dagster-pipes-tests/**"
- "libraries/pipes/implementations/rust/**"
- ".github/workflows/libraries-pipes-rust.yml"
defaults:
run:
working-directory: ./libraries/pipes/implementations/rust/
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUSTUP_MAX_RETRIES: 10
jobs:
ci:
name: "CI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: rustfmt
run: |
nix develop .#rust --command \
bash -c "cargo fmt --all --check"
- name: test
run: |
nix develop .#rust --command \
bash -c "cargo nextest run"
- name: doctest
run: |
nix develop .#rust --command \
bash -c "cargo test --doc"
- name: pipes-tests
run: |
nix develop .#rust --command \
uv run pytest
integration:
name: "integration"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./libraries/pipes/implementations/rust/example-dagster-pipes-rust-project
steps:
- uses: actions/checkout@v4
- name: "Install uv"
uses: astral-sh/setup-uv@v4
- name: "Install Python"
run: uv python install
- name: "Install the project"
run: uv sync --all-extras --dev
- name: "Lint"
run: uv run make ruff
- name: "Tests"
run: uv run pytest example_dagster_pipes_rust_project_tests