Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeste-VANDAMME authored Dec 17, 2024
1 parent 8ab30ad commit 341ee01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Replace with your Python version (e.g., '3.10')
python-version: '3.x' # Replace with your Python version, e.g., '3.10'

- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint and syntax check
run: python -m py_compile $(find . -name "*.py")
run: |
for file in $(find . -name "*.py" -type f); do
echo "Checking $file"
python -m py_compile "$file" || exit 1
done
- name: Run tests
run: |
Expand Down

0 comments on commit 341ee01

Please sign in to comment.