Skip to content

Commit

Permalink
Use generalized mypy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Oct 6, 2022
1 parent 6fd56ef commit ae01f0d
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ae01f0d

Please sign in to comment.