Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

build(deps): Bump msal from 1.24.0 to 1.26.0 #130

build(deps): Bump msal from 1.24.0 to 1.26.0

build(deps): Bump msal from 1.24.0 to 1.26.0 #130

Workflow file for this run

name: Pull Request testing
on:
pull_request:
branches: [ main ]
jobs:
django_test:
name: pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.5, 3.11.2]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
-
name: Run tests
env:
DJANGO_SETTINGS_MODULE: commendationSite.settings_CI
MICROSOFT_AUTH_CLIENT_ID: ${{ secrets.MICROSOFT_AUTH_CLIENT_ID }}
MICROSOFT_AUTH_CLIENT_SECRET: ${{ secrets.MICROSOFT_AUTH_CLIENT_SECRET }}
run: |
python manage.py test --failfast --noinput --verbosity=3
coverage:
name: Check test coverage
runs-on: ubuntu-latest
needs: django_test
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.5
uses: actions/setup-python@v2
with:
python-version: 3.10.5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
env:
DJANGO_SETTINGS_MODULE: commendationSite.settings_CI
run: |
coverage run manage.py test --noinput
coverage combine
- name: Coverage Reports
run: |
coverage report -m
coverage xml
- name: Upload coverage as artifact
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.xml
- name: Report results to DeepSource
continue-on-error: true
run: |
coverage xml
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
lint:
# Run isort and black to check for import order and code formatting
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10.5
uses: actions/setup-python@v2
with:
python-version: 3.10.5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run isort
run: |
isort --check-only --diff --recursive .
- name: Run black
run: |
black --check --diff .