File tree Expand file tree Collapse file tree 8 files changed +37
-2
lines changed
Expand file tree Collapse file tree 8 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 7373 disable-metrics : true
7474 if : runner.os != 'Windows'
7575 - name : Run unit tests in a minimal environment
76- run : env -i "$(which flox)" activate -- ./gradlew --scan test jacocoTestReport
76+ run : ./ flox/run_isolated.sh minimal ./gradlew --scan test jacocoTestReport
7777 if : runner.os != 'Windows'
7878 - name : Run unit tests
7979 run : ./gradlew --scan test jacocoTestReport
@@ -101,7 +101,7 @@ jobs:
101101 with :
102102 disable-metrics : true
103103 - name : Run functional tests that do not require external tools
104- run : env -i "$(which flox)" activate -- ./gradlew --scan -Dkotest.tags=!RequiresExternalTool funTest jacocoFunTestReport
104+ run : ./ flox/run_isolated.sh minimal ./gradlew --scan -Dkotest.tags=!RequiresExternalTool funTest jacocoFunTestReport
105105 - name : Create Test Summary
106106 uses : test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
107107 with :
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ path = ".**"
1010SPDX-FileCopyrightText = " 2017 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)"
1111SPDX-License-Identifier = " Apache-2.0"
1212
13+ [[annotations ]]
14+ path = " **/.flox/**"
15+ SPDX-FileCopyrightText = " 2025 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)"
16+ SPDX-License-Identifier = " Apache-2.0"
17+
1318[[annotations ]]
1419path = " **/.gitattributes"
1520SPDX-FileCopyrightText = " 2018 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright (C) 2025 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+ #
17+ # SPDX-License-Identifier: Apache-2.0
18+ # License-Filename: LICENSE
19+
20+ SELF=" ${BASH_SOURCE[0]} "
21+
22+ if [ " $# " -lt 2 ]; then
23+ echo " Usage: $SELF <environment directory> <command to run>" >&2
24+ exit 1
25+ fi
26+
27+ ENV_DIR=" $( dirname " $SELF " ) /$1 "
28+ shift
29+
30+ env -i " $( which flox) " activate -d " $ENV_DIR " -- " $@ "
You can’t perform that action at this time.
0 commit comments