Skip to content

build(deps): update numpy requirement from <2,>=1.26.4 to >=1.26.4,<3 #17

build(deps): update numpy requirement from <2,>=1.26.4 to >=1.26.4,<3

build(deps): update numpy requirement from <2,>=1.26.4 to >=1.26.4,<3 #17

name: Run Coverage & Code Analysis
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install Hatch
uses: pypa/hatch@install
- name: Test with hatch
run: |
hatch run +py=3.12 test:run-cov
hatch run +py=3.12 test:report-xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}