From 0300d8a4f175c3c25eaa604743af01c977d85c30 Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Fri, 12 Nov 2021 14:14:59 +0100 Subject: [PATCH] Fix CI for Python 3.10 --- .github/workflows/lint.yml | 2 +- .github/workflows/windows_exe.yml | 4 ++-- deploy/windows/create_exe.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2938ea0..48e2e01 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - name: Checkout Instaloader Repository uses: actions/checkout@v2 diff --git a/.github/workflows/windows_exe.yml b/.github/workflows/windows_exe.yml index 33028fb..9533022 100644 --- a/.github/workflows/windows_exe.yml +++ b/.github/workflows/windows_exe.yml @@ -10,9 +10,9 @@ jobs: - name: Checkout Instaloader repository uses: actions/checkout@v2 - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: "3.9" architecture: x64 - name: Get the tagged version id: get_version diff --git a/deploy/windows/create_exe.py b/deploy/windows/create_exe.py index 002ca10..1766582 100644 --- a/deploy/windows/create_exe.py +++ b/deploy/windows/create_exe.py @@ -45,7 +45,7 @@ with open('__main__.py', 'w+') as f: # install dependencies and invoke PyInstaller commands = ["pip install pipenv==2020.11.15", - "pipenv sync --dev", + f"pipenv --python {sys.version_info.major}.{sys.version_info.minor} sync --dev", "pipenv run pyinstaller --log-level=DEBUG instaloader.spec"] for command in commands: