From 7646866dfb6a168e0e098cad4a82616c20b0f25a Mon Sep 17 00:00:00 2001 From: Isaac To Date: Fri, 3 May 2024 13:05:12 -0700 Subject: [PATCH] Create a GitHub Actions workflow for static type checking --- .github/workflows/type_check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/type_check.yml diff --git a/.github/workflows/type_check.yml b/.github/workflows/type_check.yml new file mode 100644 index 00000000..43c57168 --- /dev/null +++ b/.github/workflows/type_check.yml @@ -0,0 +1,21 @@ +name: Type checks + +on: [ push, pull_request ] + +jobs: + mypy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Tags are needed to install DL-Registry + - uses: actions/setup-python@v5 + with: + python-version: '3.9' + - name: Install dependencies and project + run: | + pip install --upgrade pip + pip install -r requirements.dev.txt + pip install .[dev] + - name: Run mypy + run: mypy datalad_registry datalad_registry_client