Skip to content

Commit ba0bb2f

Browse files
committed
make sure tests always run
1 parent 18e041e commit ba0bb2f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/test-linux.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: cachix/install-nix-action@v27
1616

17-
- name: Build and test
18-
run: nix build .#checks.x86_64-linux.tests
17+
- name: Configure
18+
run: nix develop -c cmake --preset build-linux -DUSE_SINGLE_PRECISION=ON
19+
20+
- name: Build test binary
21+
run: nix develop -c cmake --build build --target operon_test -j4
22+
23+
- name: Run tests
24+
run: nix develop -c ctest --test-dir build --output-on-failure -j4

flake.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@
132132
);
133133
};
134134

135-
checks.tests = operon.overrideAttrs (_: {
136-
doCheck = true;
137-
});
138-
139135
apps.operon-gp.program = "${packages.default}/bin/operon_gp";
140136
apps.operon-nsgp.program = "${packages.default}/bin/operon_nsgp";
141137
apps.operon-parse-model.program = "${packages.default}/bin/operon_parse_model";

0 commit comments

Comments
 (0)