diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 0000000..9d8838b --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,50 @@ +name: Check Dependencies + +on: + pull_request: # Temporary + branches: [ main ] # Temporary + schedule: + - cron: '0 12 * * FRI' + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2.2.0 + with: + miniforge-version: latest + miniforge-variant: Mambaforge + activate-environment: test-env + environment-file: conda/testing.yml + python-version: 3.8 + auto-activate-base: false + + - name: Download previous dependency file + uses: actions/download-artifact@v3 + with: + name: dependencies-artifact + + - name: Rename downloaded file + run: | + ls + mv dependencies.txt previous.txt + + - name: Create Dependency file + run: | + ls + conda list > dependencies.txt + + - name: Upload dependency list + uses: actions/upload-artifact@v3 + with: + name: dependencies-artifact + path: dependencies.txt + retention-days: 14