From 06fccb792f33fbf728940fdcfb62db9017fb05c6 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 30 Sep 2023 12:42:02 -0400 Subject: fix ci (hopefully, because act wont work) --- .github/workflows/build-win.yml | 5 +++-- .github/workflows/build.yml | 3 ++- .github/workflows/typecheck.yml | 2 ++ backend/pyrightconfig.json | 3 +++ pyrightconfig.json | 3 --- 5 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 backend/pyrightconfig.json delete mode 100644 pyrightconfig.json diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index b1eee0dd..6b4051da 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -27,6 +27,7 @@ jobs: python-version: "3.11.4" - name: Install Python dependencies ⬇️ + working-directory: ./backend run: | python -m pip install --upgrade pip pip install pyinstaller==5.13.0 @@ -43,10 +44,10 @@ jobs: run: pnpm run build - name: Build Python Backend 🛠️ - run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data "./backend/static;/backend/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py - name: Build Python Backend (noconsole) 🛠️ - run: pyinstaller --noconfirm --noconsole --onefile --name "PluginLoader_noconsole" --add-data "./backend/src/static;/backend/src/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --noconsole --onefile --name "PluginLoader_noconsole" --add-data "./backend/static;/backend/static" --add-data "./backend/locales;/backend/locales" --add-data "./backend/src/legacy;/backend/src/legacy" --add-data "./plugin;/plugin" --hidden-import=sqlite3 ./backend/main.py - name: Upload package artifact ⬆️ uses: actions/upload-artifact@v3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07b5b804..3b37cc10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,6 +70,7 @@ jobs: rm -r /tmp/sqlite-autoconf-3420000 - name: Install Python dependencies ⬇️ + working-directory: ./backend run: | python -m pip install --upgrade pip pip install pyinstaller==5.13.0 @@ -86,7 +87,7 @@ jobs: run: pnpm run build - name: Build Python Backend 🛠️ - run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data ./backend/src/static:/backend/src/static --add-data ./backend/locales:/backend/locales --add-data ./backend/src/legacy:/backend/src/legacy --add-data ./plugin:/plugin --hidden-import=sqlite3 ./backend/main.py + run: pyinstaller --noconfirm --onefile --name "PluginLoader" --add-data ./backend/static:/backend/static --add-data ./backend/locales:/backend/locales --add-data ./backend/src/legacy:/backend/src/legacy --add-data ./plugin:/plugin --hidden-import=sqlite3 ./backend/main.py - name: Upload package artifact ⬆️ if: ${{ !env.ACT }} diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 056b4f9f..01a4bdff 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v2 # Check out the repository first. - name: Install Python dependencies + working-directory: backend run: | python -m pip install --upgrade pip [ -f requirements.txt ] && pip install -r requirements.txt @@ -28,6 +29,7 @@ jobs: with: python-version: "3.10.6" no-comments: true + working-directory: backend - name: Run tsc (TypeScript) working-directory: frontend diff --git a/backend/pyrightconfig.json b/backend/pyrightconfig.json new file mode 100644 index 00000000..9937f227 --- /dev/null +++ b/backend/pyrightconfig.json @@ -0,0 +1,3 @@ +{ + "strict": ["*"] +} \ No newline at end of file diff --git a/pyrightconfig.json b/pyrightconfig.json deleted file mode 100644 index 9937f227..00000000 --- a/pyrightconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "strict": ["*"] -} \ No newline at end of file -- cgit v1.2.3