From 3900b94f4381e01d626f3015a75bdd95207b950b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Sun, 20 Oct 2024 13:50:02 +0200 Subject: [PATCH] chore(ci): add .python-version 3.8 (#126) --- .github/workflows/on-pull-request.yml | 25 +++++++++++++++++++++++-- .python-version | 1 + 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .python-version diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 9a5635d..23967ee 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -27,14 +27,35 @@ jobs: with: node-version: '18' - uses: actions/checkout@v4 - - if: ${{ matrix.os == 'macOS-latest' }} - run: brew unlink openssl - uses: SublimeText/UnitTesting/actions/setup@v1 with: sublime-text-version: 4 extra-packages: | sublimelsp/LSP@main sublimelsp/LSP-pyright@master + - name: Overwrite installed dependency with local version + shell: bash + run: | + # $PACKAGE is exposed from the setup step. + + case ${{ runner.os }} in + Linux) + ST_LIBS_DIR="$HOME/.config/sublime-text/Lib/python38";; + macOS) + ST_LIBS_DIR="$HOME/Library/Application Support/Sublime Text/Lib/python38";; + Windows) + ST_LIBS_DIR="/c/st/Data/Lib/python38/";; + *) + exit 1 + esac + + cd ./ + # detached head will crash package control + rm -rf "./.git" + echo "Overwriting installed dependency in $ST_LIBS_DIR/$PACKAGE" + rm -rf "$ST_LIBS_DIR/$PACKAGE" + mv "./st3/$PACKAGE" "$ST_LIBS_DIR" + cd - - uses: SublimeText/UnitTesting/actions/run-tests@v1 Lint: diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8