Skip to content

Bump pytest from 7.1.2 to 8.4.2 #56

Bump pytest from 7.1.2 to 8.4.2

Bump pytest from 7.1.2 to 8.4.2 #56

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
# For SonarCloud Analysis
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv==2022.6.7
- name: Install requirements
run: pipenv install --dev
- name: Tests
run: pipenv run tests
- name: Patch Coverage Source Path for SonarCloud
run: sed -i 's/\/home\/runner\/work\/coding-katas-python\/coding-katas-python\//\/github\/workspace\//g' coverage-reports/coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.projectVersion=${{ github.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}