Skip to content

Commit

Permalink
Workflow for checking dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robertapplin committed Apr 6, 2023
1 parent 13b1001 commit f67d8b5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit f67d8b5

Please sign in to comment.