From 9ac6b50a329981136d981f4c0a842d02948af687 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Thu, 13 Jun 2024 16:27:26 +0200 Subject: [PATCH] Add deptry workflow --- .github/workflows/deptry.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deptry.yml diff --git a/.github/workflows/deptry.yml b/.github/workflows/deptry.yml new file mode 100644 index 0000000000..99629980c2 --- /dev/null +++ b/.github/workflows/deptry.yml @@ -0,0 +1,31 @@ +name: deptry + +on: + pull_request: + push: + branches: [main] + +jobs: + deptry: + runs-on: ubuntu-latest + defaults: + run: + shell: bash -leo pipefail {0} + steps: + - uses: actions/checkout@v4 + - uses: mamba-org/setup-micromamba@v1 + with: + micromamba-version: "latest" # any version from https://github.com/mamba-org/micromamba-releases + environment-file: environment.yml + init-shell: bash + cache-environment: true + post-cleanup: "all" + - name: Install pytensor and mypy dependencies + run: | + pip install -e . + python --version + shell: micromamba-shell {0} + - name: Run deptry + run: | + deptry . + shell: micromamba-shell {0}