Skip to content

Bump pytest from 8.2.1 to 9.0.3 #344

Bump pytest from 8.2.1 to 9.0.3

Bump pytest from 8.2.1 to 9.0.3 #344

Workflow file for this run

name: 'CR: Pytest'
on:
push:
pull_request:
types: [opened, reopened]
jobs:
pytest:
name: PyTest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
runs-on : ${{ matrix.os }}
steps:
- name: Checkout the repository and commit
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest (macOS)
if: startsWith(matrix.os, 'macOS')
run: |
PYTHONPATH=$(pwd):$PYTHONPATH
export PYTHONPATH
pytest
- name: Test with pytest (Ubuntu)
if: startsWith(matrix.os,'ubuntu')
run: |
PYTHONPATH=$(pwd):$PYTHONPATH
export PYTHONPATH
pytest
- name: Test with pytest (Windows)
if: startsWith(matrix.os,'windows')
run: |
$env:PYTHONPATH = ($pwd).path + $env:PYTHONPATH
$env:PYTHONPATH
pytest