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 d931197 commit 7b23e65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
jobs:
run-notebooks:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
folder: [PM1, PM2, PM3]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
mkdir -p linting_logs
flake8_errors=0
for notebook in PM1/*.ipynb; do
for notebook in ${{ matrix.folder }}/*.ipynb; do
[ -e "$notebook" ] || continue
flake8-nb --config=.flake8 "$notebook" > "linting_logs/$(basename "$notebook" .ipynb)_linting.txt" 2>&1 || flake8_errors=$((flake8_errors+1))
done
Expand All @@ -59,7 +59,7 @@ jobs:
id: convert
run: |
mkdir -p converted_scripts
for notebook in PM1/*.ipynb; do
for notebook in ${{ matrix.folder }}/*.ipynb; do
[ -e "$notebook" ] || continue
jupyter nbconvert --to script "$notebook" --output-dir converted_scripts
done
Expand Down Expand Up @@ -89,13 +89,13 @@ jobs:
- name: Upload linting logs
uses: actions/upload-artifact@v2
with:
name: linting-logs
name: linting-logs-${{ matrix.folder }}
path: linting_logs

- name: Upload execution logs
uses: actions/upload-artifact@v2
with:
name: execution-logs
name: execution-logs-${{ matrix.folder }}
path: logs

- name: Check for errors
Expand Down

0 comments on commit 7b23e65

Please sign in to comment.