Skip to content

Remove .zenodo.json (#450) #1573

Remove .zenodo.json (#450)

Remove .zenodo.json (#450) #1573

Workflow file for this run

name: SonarCloud analysis
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: mamba-org/setup-micromamba@v1
with:
environment-file: conda-lock.yml
environment-name: ci
cache-environment: true
init-shell: bash
- name: Install dependencies
shell: bash -l {0}
run: |
pip3 install -e .[dev]
- name: Non-ruff lint
uses: pre-commit/[email protected]
env:
SKIP: ruff,ruff-format
- name: Ruff Lint
run: ruff check --output-format=github .
shell: bash -l {0}
- name: Check format
run: ruff format --check
shell: bash -l {0}
- name: Check typings with mypy
run: mypy
shell: bash -l {0}
- name: Tests with coverage
run: |
pytest --cov --cov-report term --cov-report xml \
--junitxml=xunit-result.xml
shell: bash -l {0}
- name: Correct coverage paths
run: sed -i "s+$PWD/++g" coverage.xml
- name: SonarCloud Scan
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}