Skip to content

Commit

Permalink
Merge pull request #289 from neutrinoceros/support_oo
Browse files Browse the repository at this point in the history
TST: add support for Python's optimized mode
  • Loading branch information
neutrinoceros authored Nov 29, 2024
2 parents 8e10dda + 9ac29eb commit df83cf4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,26 @@ jobs:
- name: Run mypy
run: uv run mypy src/inifix

optimized_python:
runs-on: ubuntu-latest
name: optimized Python

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-optimized
cancel-in-progress: true

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@d8db0a86d3d88f3017a4e6b8a1e2b234e7a0a1b5 # v4.0.0
- name: Build
run: uv sync -p 3.13 --group test --no-editable
- name: Run pytest with PYTHONOPTIMIZE=2
run: uv run --no-project pytest --color=yes --doctest-modules
env:
PYTHONOPTIMIZE: 2

check-readme:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- TST: add support for Python's optimized mode

## [5.0.3] - 2024-10-25

- TST: validate inifix's pre-commit hooks continuously
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@ ignore_errors = true
minversion = "6.0"
filterwarnings = [
"error",
"ignore:assertions not in test modules or plugins will be ignored:UserWarning",
]
addopts = "-ra"

0 comments on commit df83cf4

Please sign in to comment.