File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,26 @@ jobs:
152152 - name : Run mypy
153153 run : uv run mypy src/inifix
154154
155+ optimized_python :
156+ runs-on : ubuntu-latest
157+ name : optimized Python
158+
159+ concurrency :
160+ group : ${{ github.workflow }}-${{ github.ref }}-optimized
161+ cancel-in-progress : true
162+
163+ steps :
164+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
165+ with :
166+ fetch-depth : 0
167+
168+ - uses : astral-sh/setup-uv@d8db0a86d3d88f3017a4e6b8a1e2b234e7a0a1b5 # v4.0.0
169+ - name : Build
170+ run : uv sync -p 3.13 --group test --no-editable
171+ - name : Run pytest with PYTHONOPTIMIZE=2
172+ run : uv run --no-project pytest --color=yes --doctest-modules
173+ env :
174+ PYTHONOPTIMIZE : 2
155175
156176 check-readme :
157177 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ Unreleased]
8+
9+ - TST: add support for Python's optimized mode
10+
711## [ 5.0.3] - 2024-10-25
812
913- TST: validate inifix's pre-commit hooks continuously
Original file line number Diff line number Diff line change @@ -111,5 +111,6 @@ ignore_errors = true
111111minversion = " 6.0"
112112filterwarnings = [
113113 " error" ,
114+ " ignore:assertions not in test modules or plugins will be ignored:UserWarning" ,
114115]
115116addopts = " -ra"
You can’t perform that action at this time.
0 commit comments