Skip to content

refactor: make the test fixtures agnostic from the invocation path (#34) #97

refactor: make the test fixtures agnostic from the invocation path (#34)

refactor: make the test fixtures agnostic from the invocation path (#34) #97

Workflow file for this run

name: branch-check
on:
push:
branches:
- '*'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.x']
steps:
- name: Checkout
uses: actions/checkout@v4
id: checkout
- name: Setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Dependencies
run: pip install -r dev-requirements.txt
- name: Test
run: make coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: github.event_name == 'pull_request' && matrix.python == '3.x' && github.event.pull_request.head.repo.full_name != github.repository
with:
args: >
-Dsonar.projectVersion=${{ env.VERSION }}
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
-Dsonar.organization=kronenthaler
-Dsonar.projectKey=kronenthaler_openstep-parser
-Dsonar.projectName=openstep-parser
-Dsonar.python.version=3
-Dsonar.python.coverage.reportPaths=tests/coverage.xml
-Dsonar.sources=openstep_parser/
-Dsonar.tests=tests/
-Dsonar.verbose=true
-Dsonar.c.file.suffixes=-
-Dsonar.cpp.file.suffixes=-
-Dsonar.objc.file.suffixes=-
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: github.event_name == 'push' && matrix.python == '3.x' && github.event.pull_request.head.repo.full_name != github.repository
with:
args: >
-Dsonar.projectVersion=${{ env.VERSION }}
-Dsonar.branch.name=${{ github.ref_name }}
-Dsonar.organization=kronenthaler
-Dsonar.projectKey=kronenthaler_openstep-parser
-Dsonar.projectName=openstep-parser
-Dsonar.python.version=3
-Dsonar.python.coverage.reportPaths=tests/coverage.xml
-Dsonar.sources=openstep_parser/
-Dsonar.tests=tests/
-Dsonar.verbose=true
-Dsonar.c.file.suffixes=-
-Dsonar.cpp.file.suffixes=-
-Dsonar.objc.file.suffixes=-
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}