Skip to content

Commit

Permalink
Change test action
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Feb 20, 2024
1 parent a33caa5 commit 8b83abd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ jobs:
run: |
pip install --upgrade pip
pip install '.[dev]' --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple
: # we need the latest nomad version for testing
pip install --ignore-installed nomad-lab[infrastructure]@git+https://github.com/nomad-coe/nomad.git@develop
pip install --ignore-installed '.[tests]'
pip install coverage coveralls
- name: mypy
run: |
python -m mypy --ignore-missing-imports --follow-imports=silent --no-strict-optional runschema tests
- name: Test with pytest
continue-on-error: true
run: |
python -m coverage run -m pytest -sv tests
- name: Submit to coveralls
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ dev = [
"pytest-cov==2.7.1",
"ruff==0.1.4"
]
tests = [
# we need the latest nomad version for testing
"nomad-lab[infrastructure]@git+https://github.com/nomad-coe/nomad.git@develop"
]
[tool.ruff]
include = ["runschema/*.py", "tests/*.py"]

Expand Down
8 changes: 4 additions & 4 deletions tests/test_runschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from ..runschema.run import Run
from ..runschema.calculation import Calculation
from ..runschema.method import Method
from ..runschema.system import System
from runschema.run import Run
from runschema.calculation import Calculation
from runschema.method import Method
from runschema.system import System


def test_schema():
Expand Down

0 comments on commit 8b83abd

Please sign in to comment.