diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7302ba3..5327018 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,18 +3,22 @@ # SPDX-License-Identifier: GPL-3.0-or-later name: Tests -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: Tests: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] - os: [ubuntu-22.04] + python-version: ['3.9', '3.10', '3.11', '3.12'] + os: [ubuntu-24.04] include: - - python-version: 3.11 - os: macos-12 + - python-version: 3.12 + os: macos-14 steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eedddf3..71e92c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,32 +7,32 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.13.0 + rev: v2.14.0 hooks: - id: pretty-format-toml args: [--autofix] - id: pretty-format-yaml args: [--autofix, --indent, '2'] - repo: https://github.com/fsfe/reuse-tool - rev: v3.1.0a1 + rev: v4.0.3 hooks: - id: reuse - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.6.9 hooks: - id: ruff args: [--fix] - repo: https://github.com/pycqa/pylint - rev: v3.2.4 + rev: v3.3.1 hooks: - id: pylint additional_dependencies: [babel, tabulate, tzlocal, xdg-base-dirs, termcolor, pytest] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.2 hooks: - id: mypy additional_dependencies: [types-tabulate, types-tzlocal, types-termcolor]