From ae01f0d550a1ae29c8d7498083dbc7089ddf9e96 Mon Sep 17 00:00:00 2001 From: Matthias Wittgen Date: Wed, 5 Oct 2022 18:11:25 -0700 Subject: [PATCH] Use generalized mypy workflow --- .github/workflows/mypy.yaml | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index 6ca7b28..873fc8c 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -7,36 +7,5 @@ on: pull_request: jobs: - mypy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup Python - uses: actions/setup-python@v3 - with: - python-version: "3.10.6" - cache: "pip" - - - name: Install - run: pip install mypy pydantic - - - name: Install types dependencies - run: | - if [ -e types.txt ] - then - pip install -r types.txt - fi - - name: Install lsst dependencies - run: | - if [ -e requirements.txt ] - then - pip install -r requirements.txt - fi - - name: Run mypy - run: | - prefix="python/lsst" - echo "__all__ = ['__version__']" > "${prefix}/daf/butler_migrate/version.py" - echo "__version__ = '0.0.1'" >> "${prefix}/daf/butler_migrate/version.py" - mypy "${prefix}" + call-workflow: + uses: lsst/rubin_workflows/.github/workflows/mypy.yaml@tickets/DM-36479