diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 03356d98..caa72e13 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -87,13 +87,9 @@ jobs: exclude: - os: macos-latest python-version: "3.9" - - os: macos-latest - python-version: "3.8" include: - os: macos-13 python-version: "3.9" - - os: macos-13 - python-version: "3.8" env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} @@ -128,5 +124,13 @@ jobs: with: file: coverage.xml env_vars: OS,PYTHON - fail_ci_if_error: false # TODO: Change to true + fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} + + collect: + if: github.event.pull_request.draft == false + needs: [ruff, mypy, build-docs, pytest] + runs-on: ubuntu-latest + steps: + - name: Collect results + run: echo "All checks passed!" diff --git a/.vscode/settings.json b/.vscode/settings.json index 38e843f0..f92c1526 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,7 +27,7 @@ "-v", "-s", "--color=yes", - "--log-cli-level=INFO", + "--log-cli-level=INFO" ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true diff --git a/pyproject.toml b/pyproject.toml index 352ff5d5..1e8bc2a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ dev-dependencies = [ "deptry==0.20.0", # "pre-commit==3.8.0", # pre-commit requires Python 3.9+ # For docs - "mkdocs-material==9.5.39", + "mkdocs-material==9.5.40", "mkdocstrings[python]==0.26.1", "mkdocs-gen-files==0.5.0", "mkdocs-literate-nav==0.6.1", diff --git a/scripts/bump_version.py b/scripts/bump_version.py index 181d1d4b..fe50c65d 100755 --- a/scripts/bump_version.py +++ b/scripts/bump_version.py @@ -35,7 +35,7 @@ def main( with pyproject_path.open("r") as f: pyproject = tomlkit.load(f) - version_str: str = pyproject["project"]["version"] # type: ignore[assignment, index] + version_str: str = pyproject["project"]["version"] # type: ignore[assignment, index] version_parts = version_str.split(".") if len(version_parts) != 3: msg = f"Version must have 3 parts, but {version_str!r} has {len(version_parts)}" @@ -58,7 +58,7 @@ def main( new_version_str = f"{major}.{minor}.{patch}" stderr.print(f"Bumping version from {version_str!r} to {new_version_str!r}") - pyproject["project"]["version"] = new_version_str # type: ignore[index] + pyproject["project"]["version"] = new_version_str # type: ignore[index] with pyproject_path.open("w") as f: tomlkit.dump(pyproject, f) diff --git a/scripts/get_version.py b/scripts/get_version.py index d49ec076..ed9757dc 100755 --- a/scripts/get_version.py +++ b/scripts/get_version.py @@ -29,5 +29,6 @@ def main( print(version_str) raise typer.Exit(0) + if __name__ == "__main__": typer.run(main)