Skip to content

fix: update dependency black to v25 #768

fix: update dependency black to v25

fix: update dependency black to v25 #768

Workflow file for this run

---
name: Python Tests
on:
pull_request:
branches:
- main
paths:
- src/**
- test/**
- pyproject.toml
- poetry.lock
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
if: ${{ ! contains(github.repository, 'template') }}
strategy:
matrix:
py:
- '3.11'
- '3.10'
- '3.9'
os:
- ubuntu-latest
- macos-latest
name: >
${{ matrix.os }} | py-${{ matrix.py }}
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Dependencies
uses: ./.github/actions/setup-poetry
with:
python-version: ${{ matrix.py }}
flags: --only test,main
key: test
- name: Run Python tests
uses: ./.github/actions/python-test
with:
coverage-name: ${{ matrix.os }}-py-${{ matrix.py }}-coverage
test-report-name: ${{ matrix.os }}-py-${{ matrix.py }}-tests
coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Dependencies
uses: ./.github/actions/setup-poetry
- name: Upload combined coverage
uses: ./.github/actions/python-coverage