Skip to content

Commit

Permalink
Fix Python version 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 afffc5f commit ecc079b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Python Package CI

# Trigger the workflow on push or pull request to the main branch
on:
push:
branches:
Expand All @@ -12,20 +11,19 @@ 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:
# Use supported Python versions (3.6 and above)
python-version: [3.8, 3.9, 3.10]

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 # Set up Python based on the version defined in the matrix
uses: actions/setup-python@v2 # Set up Python using supported versions
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -40,8 +38,8 @@ jobs:
- name: Lint with flake8
run: |
# Run flake8 using the .flake8 config file that ignores non-critical errors
flake8 CortexLink.py || true # Ensure flake8 errors don't stop the build
# Explicitly point to the .flake8 configuration file
flake8 --config .flake8 CortexLink.py || true # Ensure flake8 errors don't stop the build
- name: Run tests
run: |
Expand Down

0 comments on commit ecc079b

Please sign in to comment.