Skip to content

Commit

Permalink
Fix convention for github/workflows/python-package.yml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtrung23 committed Sep 5, 2024
1 parent 5920fa8 commit a1a7b2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
Expand All @@ -11,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -29,6 +25,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -e .; fi
pip list # List installed packages to verify
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -38,3 +35,6 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Debug Python Path
run: |
python -c "import sys; print(sys.path)"

0 comments on commit a1a7b2e

Please sign in to comment.