|
| 1 | +# Copyright 2023 Ericsson AB |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: codechecker-bazel-nox-tests |
| 16 | + |
| 17 | +# Triggers the workflow on push or pull request events. |
| 18 | +on: [push, pull_request] |
| 19 | + |
| 20 | +permissions: read-all |
| 21 | + |
| 22 | +concurrency: |
| 23 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 24 | + cancel-in-progress: true |
| 25 | + |
| 26 | +jobs: |
| 27 | + micromamba-test: |
| 28 | + name: "Nox tests (Ubuntu)" |
| 29 | + runs-on: ubuntu-24.04 |
| 30 | + strategy: |
| 31 | + fail-fast: false |
| 32 | + |
| 33 | + steps: |
| 34 | + - name: Checkout repository |
| 35 | + uses: actions/checkout@v4 |
| 36 | + |
| 37 | + - name: Install dependencies |
| 38 | + run: | |
| 39 | + pip install nox pytest |
| 40 | +
|
| 41 | + # Bazel 7 provided by micromamba is compiled using a newer java version |
| 42 | + # than the default in Github runner |
| 43 | + - name: Set up JRE 21 |
| 44 | + uses: actions/setup-java@v4 |
| 45 | + with: |
| 46 | + java-version: '21' |
| 47 | + distribution: 'temurin' |
| 48 | + java-package: 'jre' |
| 49 | + |
| 50 | + - name: Install micromamba and run tests |
| 51 | + run: | |
| 52 | + source .ci/nox/install.sh |
| 53 | + nox |
0 commit comments