Skip to content

Commit

Permalink
add a dependency on installing the python lib to running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Jun 29, 2024
1 parent 0dfd9fd commit 4c1ae16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master

jobs:
behaviour-test:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand All @@ -28,9 +28,12 @@ jobs:
path: |
~/.cache/zig
.zig-cache
key: osmium-${{hashFiles('build.zig.zon')}}
key: osmium-${{hashFiles('build.zig.zon')}}

- name: Run Tests
- name: Build Osmium
run: zig build

- name: Run Behaviour Tests
run: zig build test --summary all

- name: Save Cache
Expand Down
7 changes: 4 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ pub fn build(b: *std.Build) !void {
.dest_dir = .{ .override = .{ .custom = "python" } },
});
b.getInstallStep().dependOn(&libpython_install.step);

const test_step = b.step("test", "Test Osmium");
try cases.addCases(b, exe, test_step);
test_step.dependOn(&libpython_install.step);
}

// other steps
Expand All @@ -88,9 +92,6 @@ pub fn build(b: *std.Build) !void {

const opcode_step = b.step("opcode", "Generate opcodes");
generateOpCode(b, opcode_step);

const test_step = b.step("test", "Test Osmium");
try cases.addCases(b, exe, test_step);
}
}

Expand Down

0 comments on commit 4c1ae16

Please sign in to comment.