Skip to content

Commit

Permalink
Update python-package-conda.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsyrgkanis authored Jun 28, 2024
1 parent 3ff017f commit f873cbe
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ on:

jobs:
run-notebooks:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout repository
Expand All @@ -23,13 +27,21 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter nbconvert
pip install -r requirements.txt
pip install jupyter nbconvert flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
shell: bash

- name: Convert Jupyter notebooks to Python scripts
run: |
find . -name "*.ipynb" -exec jupyter nbconvert --to script {} \;
shell: bash

- name: Run Flake8 linting
run: |
find . -name "*.py" -exec flake8 {} \;
shell: bash

- name: Run Python scripts
run: |
find . -name "*.py" -exec python {} \;
shell: bash

0 comments on commit f873cbe

Please sign in to comment.