Skip to content

install pytest

install pytest #968

Workflow file for this run

name: SonarCloud analysis
on:
push:
branches:
- '**'
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch: null
permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Maven Action
uses: s4u/[email protected]
with:
checkout-fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip # caching pip dependencies
- name: install pytest
run: |
pip install pytest
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build and analyze
uses: coactions/setup-xvfb@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
run: |
mvn -P sonar -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ThalesGroup_xsmp-modeler-core
./gradlew build vscodeExtension