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
4 changes: 2 additions & 2 deletions .github/workflows/reusable-maya-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:

- name: Set Maya environment variables
run: |
export XDG_RUNTIME_DIR=/var/tmp/runtime-root
export MAYA_DISABLE_ADP=1
echo "XDG_RUNTIME_DIR=/var/tmp/runtime-root" >> $GITHUB_ENV
echo "MAYA_DISABLE_ADP=1" >> $GITHUB_ENV

- name: Run tests
run: mayapy -m pytest tests
2 changes: 1 addition & 1 deletion .github/workflows/reusable-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: psf/black@stable
with:
src: "src"
options: "--diff"
options: "--check --diff"

- name: Analysing the code with mypy
run: mypy src
2 changes: 1 addition & 1 deletion src/mayapythonprojecttemplate/example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" mayapythonprojecttemplate package. """
"""mayapythonprojecttemplate package."""

from maya import cmds

Expand Down
4 changes: 3 additions & 1 deletion tests/maya/conftest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import pytest

@pytest.fixture(autouse=True)
@pytest.fixture(scope="session", autouse=True)
def run_in_maya():
from maya import (
standalone,
cmds
)
standalone.initialize()
cmds.scriptEditorInfo(e=True, sw=True, se=True, si=True)
yield
standalone.uninitialize()
Loading