diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c262cd1..37b70cce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,12 @@ jobs: pip install trio pip install "git+https://github.com/njbooher/steam.git@wsproto#egg=steam[client]" + # PyRight, the unit tests, and other scripts import/resolve the "protonfixes" module + # We are using the path "umu-protonfixes", which isn't a valid module name and can't be used + # However: this simple, hacky symbolic link in the parent folder can fix this inconvenience + - name: Fix python module resolution + run: ln -rs . ../protonfixes + # FIXME: problem matcher is currently disabled upstream, using a fork for the moment # https://github.com/ludeeus/action-shellcheck/pull/103 # FIXME: symlinks don't work upstream @@ -56,9 +62,6 @@ jobs: - name: Validate gamefix imports run: | - cd .. - ln -s umu-protonfixes protonfixes - cd protonfixes python3 .github/scripts/check_imports.py - name: Test with unittest diff --git a/pyproject.toml b/pyproject.toml index 41902dc3..72a240a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ exclude = [ "subprojects", "verbs" ] +extraPaths = [ ".." ] # Fix "protonfixes" module resolution pythonVersion = "3.9" pythonPlatform = "Linux"