Run on latest windows and linux runners; ensure python 3.10 version
This commit is contained in:
1 parent
91f2dacbcc
commit
b754f5e4a6
1 file changed
+13
-5
@@ -7,10 +7,13 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHON_VERSION: '3.10'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
runs-on: windows-2022
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -27,6 +30,11 @@ jobs:
|
|||||||
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
|
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
|
||||||
Out-File version.py
|
Out-File version.py
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: $PYTHON_VERSION
|
||||||
|
|
||||||
- name: Set up Python virtual environment
|
- name: Set up Python virtual environment
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
@@ -70,7 +78,7 @@ jobs:
|
|||||||
|
|
||||||
linux-pyinstaller:
|
linux-pyinstaller:
|
||||||
name: Linux (PyInstaller)
|
name: Linux (PyInstaller)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -89,7 +97,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: $PYTHON_VERSION
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -147,7 +155,7 @@ jobs:
|
|||||||
|
|
||||||
linux-appimage:
|
linux-appimage:
|
||||||
name: Linux (AppImage)
|
name: Linux (AppImage)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -201,7 +209,7 @@ jobs:
|
|||||||
- windows
|
- windows
|
||||||
- linux-pyinstaller
|
- linux-pyinstaller
|
||||||
- linux-appimage
|
- linux-appimage
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user