Codecademy / add-automated-tests-off-platform-project

6 stars 1.49k forks source link

[BUG] Error: Version 3.10.0 with arch x64 not found #274

Open gitleye opened 8 months ago

gitleye commented 8 months ago

hey team,

when I ran the command git push --set-upstream origin "add-auto-tests" while following the instructions on the codeacademy - https://www.codecademy.com/courses/learn-git/articles/github-actions-tutorial-on-automated-testing

my GitHub actions returned the error message Error: Version 3.10.0 with arch x64 not found attached.

Screenshot 2024-02-10 at 1 02 39 PM

if the python-version on the unittests.yaml file could be updated to a version that's currently available in the following [library][https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json], that would be greatly appreciated.

thank you

contents of unittests.yaml file in add-automated-tests-off-platform-project/.github/workflows/unittests.yaml

name: Continuous Integration
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.10.0
          architecture: x64
      - name: Install dependencies
        run: pip install -r requirements.txt 
      - name: Run Tests
        run: python -m pytest
kylestarr commented 7 months ago

Try updating python-version: 3.10.0 to python-version: "3.10". Mind the quotes around "3.10". This triggered a successful build for me.

name: Continuous Integration
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.10"
          architecture: x64
      - name: Install dependencies
        run: pip install -r requirements.txt 
      - name: Run Tests
        run: python -m pytest
ChrissyVadovszki commented 6 months ago

omg thank you kyle, this was driving me a little cray cray.

JonAdams99 commented 4 weeks ago

You can also check your current version of Python install and change it to that version. For me, it is: python-version: 3.12.4

khvan84 commented 1 day ago

Thanks. It worked for me. But there is another error about deprecated node. Nevertheless the it running and green.