| 1 | name: Mypy type hint checks |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | push: |
| 6 | branches: |
| 7 | - main |
| 8 | |
| 9 | jobs: |
| 10 | run: |
| 11 | runs-on: ubuntu-latest |
| 12 | |
| 13 | steps: |
| 14 | - uses: actions/checkout@v4 |
| 15 | |
| 16 | - name: Setup Micromamba env |
| 17 | uses: mamba-org/setup-micromamba@v1 |
| 18 | with: |
| 19 | environment-name: TEST |
| 20 | create-args: >- |
| 21 | python=3 |
| 22 | --file requirements.txt |
| 23 | --file requirements-dev.txt |
| 24 | |
| 25 | - name: Install branca from source |
| 26 | shell: bash -l {0} |
| 27 | run: | |
| 28 | python -m pip install -e . --no-deps --force-reinstall |
| 29 | |
| 30 | - name: Mypy test |
| 31 | shell: bash -l {0} |
| 32 | run: | |
| 33 | mypy branca |