From 7b23e652f5995c4ea0ad8b7e6b97859a2741d57d Mon Sep 17 00:00:00 2001 From: vsyrgkanis Date: Fri, 28 Jun 2024 10:06:59 -0700 Subject: [PATCH] Update python-package-conda.yml --- .github/workflows/python-package-conda.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index cdd4086c..7ade9a6c 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -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 @@ -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 @@ -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 @@ -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