Skip to content

Bump pytest from 8.4.2 to 9.0.1 #1456

Bump pytest from 8.4.2 to 9.0.1

Bump pytest from 8.4.2 to 9.0.1 #1456

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python 3.12
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Python 3.13
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.13"
cache: pip
- name: Install dependencies
shell: bash
run: |
python3 -m pip install -e .[test]
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
token: ${{ secrets.CODSPEED_TOKEN }}
mode: instrumentation
run: pytest --timeout=300 --no-cov -vvvvv --codspeed tests/benchmarks
build:
runs-on: ubuntu-latest
timeout-minutes: 6
needs: lint
environment: CI
strategy:
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip" # caching pip dependencies
- name: Install dependencies
shell: bash
run: |
python3 -m pip install -e .[test]
- name: Test with Pytest
run: pytest --cov=snitun --cov-report=xml --timeout=10
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}