Help with Installing Python .whl in Github Actions

I am trying to make a build of my application using Github Actions, but I am having problems figuring out how I can properly install the wxPython dependency from the .whl file.

This is the error I get when running the workflow (when it gets to installing wxpython from the .whl):

Run python -m pip install "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.1.1-cp38-cp38-linux_x86_64.whl"

ERROR: wxPython-4.1.1-cp38-cp38-linux_x86_64.whl is not a supported wheel on this platform.

Error: Process completed with exit code 1.

It seems that this has to do with the architecture not being 64-bit. Is there a way to specify a certain architecture for Linux and Windows in Github Actions?

This is my build.yml in .github/workflows folder in my repo:

name: Build

# Controls when the action will run.
on:
  push:
    tags: 'v*'

  workflow_dispatch:


jobs:
  linux:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
    - run: sudo apt-get install libsdl2-2.0-0
    - run: python -m pip install --upgrade pip setuptools wheel
    - run: python -m pip install pyinstaller
    - run: python -m pip install opencv-python
    - run: python -m pip install numpy
    - run: python -m pip install scipy
    - run: python -m pip install pillow
    - run: python -m pip install "https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.1.1-cp38-cp38-linux_x86_64.whl"

    # Build with PyInstaller
    - name: Compile using pyinstaller
      run: |
        pyinstaller -n "GimelStudio" --hidden-import pkg_resources.py2_warn "src/main.py"


    # Prepare the release
    - name: Prepare release
      uses: papeloto/action-zip@v1
      with:
        files: ./dist/GimelStudio/
        dest: GimelStudio-Linux64.zip

    # Actually make the release
    - name: Uploading release
      uses: svenstaro/upload-release-action@v2
      with:
        repo_token: ${{ secrets.GITHUB_TOKEN }}
        file: ./GimelStudio-Linux64.zip
        asset_name: GimelStudio-Linux64.zip
        tag: ${{ github.ref }}

So, I figured it out.

I had forgot that it will default to the latest version on Python which is currently 3.9.

Adding

    - uses: actions/setup-python@v2
      with:
        python-version: "3.8"

fixed my problem.