From 3b8556d65651a9328cd1dbe91706b9a91e885840 Mon Sep 17 00:00:00 2001 From: Martim Passos <49573683+martimpassos@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:20:21 -0300 Subject: [PATCH] Run scripts as module --- .github/workflows/update-no-docker.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-no-docker.yaml b/.github/workflows/update-no-docker.yaml index 31083efa..b8d62909 100644 --- a/.github/workflows/update-no-docker.yaml +++ b/.github/workflows/update-no-docker.yaml @@ -31,7 +31,7 @@ jobs: - name: Install dependencies run: npm install - - name: Run Puppeteer script + - name: Fetch JSTOR data run: node imaginerio-etl/utils/fetchData.js env: JSTOR_USER: ${{ secrets.JSTOR_USER }} @@ -57,8 +57,9 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc heimdal-dev - sudo pip install arcgis turfpy lxml geojson - python3 imaginerio-etl/scripts/viewcones.py + pip install arcgis --no-deps + pip install turfpy lxml geojson + python3 -m imaginerio-etl.scripts.viewcones.py - name: Install libvips if: steps.compare_data.outputs.file_created == 'true' @@ -70,7 +71,7 @@ jobs: if: steps.compare_data.outputs.file_created == 'true' run: | pip install -r requirements.txt - python3 imaginerio-etl/scripts/iiif.py + python3 imaginerio-etl.scripts.iiif.py - name: Commit and push changes run: |