Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Fix "protonfixes" module resolution
Browse files Browse the repository at this point in the history
Root-Core committed Jan 10, 2025
1 parent 44d4f5f commit fb3d2ee
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ exclude = [
"subprojects",
"verbs"
]
extraPaths = [ ".." ] # Fix "protonfixes" module resolution
pythonVersion = "3.9"
pythonPlatform = "Linux"

0 comments on commit fb3d2ee

Please sign in to comment.