I am trying to execute github action script
this is the script
name: My First GitHub Actions
on: [push]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run tests
run: |
cd src
python -m pytest addition.py
but getting this error
ubuntu@ip-172-31-16-175:~/actions-runner$ ./run.sh
√ Connected to GitHub
Current runner version: ‘2.316.1’
2024-05-18 18:20:12Z: Listening for Jobs
2024-05-18 18:20:15Z: Running job: build (3.8)
2024-05-18 18:20:23Z: Job build (3.8) completed with result: Failed
2024-05-18 18:20:24Z: Running job: build (3.9)
2024-05-18 18:20:28Z: Job build (3.9) completed with result: Canceled
I have checked the logs , logs are showing that this is the error , tried to change the python version but still getting the same error
Version 3.8 was not found in the local cache
Error: Version 3.8 with arch x64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
can anyone please help me, how to resolve these error?
tried different python versions.
Afiya Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.