Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump cda-tum/mqt-workflows from 1.4.0 to 1.4.4 in the github-actions group #25

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
python-packaging:
name: 🐍 Packaging
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4

deploy:
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ concurrency:
jobs:
change-detection:
name: 🔍 Change
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4

cpp-tests:
name: 🇨‌ Test
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cpp-tests)
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4
permissions:
id-token: write # Explicitly allows the `id-token: write` permission for this job
with:
Expand All @@ -33,23 +33,23 @@ jobs:
name: 🇨‌ Lint
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cpp-linter)
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4

python-tests:
name: 🐍 Test
needs: change-detection
permissions:
id-token: write # Explicitly allows the `id-token: write` permission for this job
if: fromJSON(needs.change-detection.outputs.run-python-tests)
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4
with:
skip-testing-latest-python: true

code-ql:
name: 📝 CodeQL
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-code-ql)
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4

required-checks-pass: # This job does nothing and is only used for branch protection
name: 🚦 Check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-mqt-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ concurrency:
jobs:
update-mqt-core:
name: ⬆️ Update MQT Core
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].0
uses: cda-tum/mqt-workflows/.github/workflows/[email protected].4
with:
update-to-head: ${{ github.event.inputs.update-to-head == 'true' }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ repos:
rev: v2.3.0
hooks:
- id: codespell
args: ["-L", "wille,linz", "--skip", "*.ipynb"]
args: ["-L", "wille,linz,astroid", "--skip", "*.ipynb"]

# Catch common capitalization mistakes
- repo: local
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Typing :: Typed",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dynamic = ["version"]

[project.optional-dependencies]
Expand Down Expand Up @@ -156,7 +156,7 @@ report.exclude_also = [
[tool.mypy]
files = ["src/mqt", "test/python"]
mypy_path = ["$MYPY_CONFIG_FILE_DIR/src"]
python_version = "3.8"
python_version = "3.9"
warn_unused_configs = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
Expand Down
9 changes: 6 additions & 3 deletions test/python/test_python_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@

import locale
from pathlib import Path
from typing import Generator, Tuple, cast
from typing import TYPE_CHECKING, cast

import pytest

import mqt.debugger

SimulationInstance = Tuple[mqt.debugger.SimulationState, int]
if TYPE_CHECKING:
from collections.abc import Generator

SimulationInstance = tuple[mqt.debugger.SimulationState, int]


@pytest.fixture(scope="module")
Expand Down Expand Up @@ -69,7 +72,7 @@ def simulation_state_cleanup(

def load_fixture(request: pytest.FixtureRequest, name: str) -> tuple[mqt.debugger.SimulationState, int]:
"""Loads a fixture with the given name."""
return cast(Tuple[mqt.debugger.SimulationState, int], request.getfixturevalue(name))
return cast(tuple[mqt.debugger.SimulationState, int], request.getfixturevalue(name))


@pytest.mark.parametrize(
Expand Down
Loading
Loading