Skip to content

Commit

Permalink
Fix Python version issue in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Symbolexe authored Sep 22, 2024
1 parent 802f1c6 commit 47c7a95
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Python Package CI

# Trigger the workflow on push or pull request to the main branch
on:
push:
branches:
Expand All @@ -11,24 +12,27 @@ on:
jobs:
build:

# Use the latest Ubuntu image to run the job
runs-on: ubuntu-latest

# Define the Python versions you want to test on
strategy:
matrix:
python-version: [3.8, 3.9, 3.10] # Test on Python 3.8, 3.9, and 3.10
python-version: [3.8, 3.9, 3.10] # These are valid versions

steps:
- name: Checkout code
uses: actions/checkout@v2 # Checkout the repository
uses: actions/checkout@v2 # Checkout the repository code

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 # Set up Python for each version
uses: actions/setup-python@v2 # Set up Python based on the version defined in the matrix
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }} # Use valid Python versions like 3.8, 3.9, or 3.10

- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install the necessary libraries for CortexLink
pip install googlesearch-python colorama tabulate
- name: Install flake8
Expand Down

0 comments on commit 47c7a95

Please sign in to comment.