Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add .python-version 3.8 #126

Merged
merged 12 commits into from
Oct 20, 2024
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
25 changes: 23 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8