Merge pull request 'test/mypy' (#11) from test/mypy into develop
Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/11
This commit is contained in:
commit
5ec8ea682e
13 changed files with 138 additions and 62 deletions
30
.github/workflows/mypy.yaml
vendored
Normal file
30
.github/workflows/mypy.yaml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Mypy
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
UV_CACHE_DIR: /tmp/.uv-cache
|
||||
steps:
|
||||
- name: Install git-annex
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y git-annex
|
||||
- name: Check out the repository
|
||||
uses: https://github.com/RouxAntoine/checkout@v4.1.8
|
||||
with:
|
||||
show-progress: true
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
enable-cache: true
|
||||
- name: Install corrlib
|
||||
run: uv sync --locked --all-extras --dev --python "3.12"
|
||||
- name: Run tests
|
||||
run: uv run mypy corrlib
|
||||
Loading…
Add table
Add a link
Reference in a new issue