Skip to content

Commit b5169f5

Browse files
authored
Interface factory unit tests (#151)
1 parent 952da19 commit b5169f5

File tree

13 files changed

+3581
-248
lines changed

13 files changed

+3581
-248
lines changed

.github/workflows/python-ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,16 @@ jobs:
6565
- name: Install dependencies and run tests
6666
run: pixi run -e dev test
6767

68-
- name: Upload coverage
69-
uses: codecov/codecov-action@v4.0.1
68+
- name: Upload coverage reports to Codecov
69+
uses: codecov/codecov-action@v5
7070
with:
71-
token: ${{ secrets.CODECOV_TOKEN_NEW }}
72-
name: Pytest coverage
73-
env_vars: OS,PYTHON,GITHUB_ACTIONS,GITHUB_ACTION,GITHUB_REF,GITHUB_REPOSITORY,GITHUB_HEAD_REF,GITHUB_RUN_ID,GITHUB_SHA,COVERAGE_FILE
74-
env:
75-
OS: ${{ matrix.os }}
76-
PYTHON: ${{ matrix.python-version }}
71+
name: unit-tests-job
72+
flags: unittests
73+
files: ./coverage-unit.xml
74+
fail_ci_if_error: true
75+
verbose: true
76+
token: ${{ secrets.CODECOV_TOKEN }}
77+
slug: EasyScience/corelib
7778

7879
Package_Testing:
7980

pixi.lock

Lines changed: 248 additions & 217 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/easyscience/global_object/map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def __repr__(self) -> str:
2424
s += ', '.join(self._type)
2525
else:
2626
s += 'Undefined'
27-
s += '. With'
2827
if self.finalizer is None:
29-
s += 'out'
30-
s += 'a finalizer.'
28+
s += '. Without a finalizer.'
29+
else:
30+
s += '. With a finalizer.'
3131
return s
3232

3333
def __delitem__(self, key):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: 2025 EasyScience contributors <[email protected]>
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
# © 2021-2025 Contributors to the EasyScience project <https://github.com/easyScience/EasyScience
4+

0 commit comments

Comments
 (0)