Skip to content
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
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13", "pypy3.10"]
python-version: ["3.10", "3.14", "pypy3.10"]
include:
- python-version: 3.9
- python-version: 3.10
coverage: "--cov=rebench"
name: "Ubuntu-latest: Python ${{ matrix.python-version }}"
steps:
- name: Checkout ReBench
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand All @@ -42,19 +42,19 @@ jobs:
run: |
pip install pylint
pylint rebench
if: matrix.python-version == '3.13'
if: matrix.python-version == '3.14'

- name: Install and run black
run: |
pip install black
black --check rebench
if: matrix.python-version == '3.13'
if: matrix.python-version == '3.14'

- name: Install and run mypy
run: |
pip install mypy
pip install mypy types-PyYAML types-psutil types-humanfriendly
mypy --install-types --non-interactive rebench
if: matrix.python-version == '3.13'
if: matrix.python-version == '3.14'

- name: Upload coverage results to Coveralls
run: coveralls
Expand All @@ -64,15 +64,15 @@ jobs:

test-macos:
runs-on: macos-latest
name: "macOS: Python 3.12"
name: "macOS: Python 3.13"
steps:
- name: Checkout ReBench
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.12"
python-version: "3.13"

- name: Install PyTest
run: pip install pytest
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
apt-get install -y --no-install-recommends time

- name: Checkout ReBench
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install PyTest
run: pip3 install pytest
Expand All @@ -116,13 +116,13 @@ jobs:
run: python3 -m pytest

test-rocky:
name: "Rocky Linux: Python 3.9"
name: "Rocky Linux 10"
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9
image: rockylinux/rockylinux:10
steps:
- name: Checkout ReBench
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install basic tools
run: dnf install -y which time sudo python3-pip
Expand All @@ -133,7 +133,7 @@ jobs:
python3 -m virtualenv venv
source venv/bin/activate

pip install pytest
pip install pytest setuptools
pip install .

pytest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Dependencies
Expand Down
4 changes: 0 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ persistent=yes
# Specify a configuration file.
#rcfile=

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages
suggestion-mode=yes

# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
Expand Down
3 changes: 1 addition & 2 deletions rebench/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from codecs import open as open_with_enc
from collections import deque
from math import floor
from multiprocessing import cpu_count
Expand Down Expand Up @@ -450,7 +449,7 @@ def _keep_alive(seconds):
build_command.mark_succeeded()

def process_output(self, name, stdout_result, stderr_result):
with open_with_enc(self.build_log, "a", encoding="utf-8") as log_file:
with open(self.build_log, "a", encoding="utf-8") as log_file:
if stdout_result:
log_file.write(name + "|STD:")
log_file.write(stdout_result)
Expand Down
2 changes: 1 addition & 1 deletion rebench/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def none_or_dict(value) -> Optional[dict[str, Any]]:
def value_with_optional_details(value, default_details=None):
if isinstance(value, dict):
assert len(value) == 1
(value, details) = list(value.items())[0]
value, details = list(value.items())[0]
else:
details = default_details

Expand Down
1 change: 0 additions & 1 deletion rebench/tests/configurator_compile_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from ..persistence import DataStore
from ..ui import TestDummyUI


# precedence order/priority, from most important to least important:
CONFIG_ELEMENTS = [
"benchmark",
Expand Down
4 changes: 1 addition & 3 deletions rebench/tests/features/issue_81_unicode_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# IN THE SOFTWARE.
import os

from codecs import open as open_with_enc

from ...configurator import Configurator, load_config
from ...executor import Executor
from ...persistence import DataStore
Expand Down Expand Up @@ -49,7 +47,7 @@ def test_building(self):

self.assertTrue(os.path.exists(self._path + "/build.log"))

with open_with_enc(self._path + "/build.log", "r", encoding="utf-8") as build_file:
with open(self._path + "/build.log", "r", encoding="utf-8") as build_file:
log = build_file.read()

unicode_char = chr(22234)
Expand Down