Skip to content

Bump pytest-mock from 3.15.0 to 3.15.1 #109

Bump pytest-mock from 3.15.0 to 3.15.1

Bump pytest-mock from 3.15.0 to 3.15.1 #109

Workflow file for this run

name: Build and Test
on:
merge_group:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install package
run: poetry install --no-interaction
- name: Run tests with pytest
run: |
poetry run pytest -v --cov=auth0_server_python --cov-report=term-missing --cov-report=xml
- name: Run ruff linting
run: |
poetry run ruff check .
# - if: ${{ matrix.python-version == '3.10' }}
# name: Upload coverage
# uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # pin@5.5.0
# with:
# token: ${{ secrets.CODECOV_TOKEN }}