diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 89b2155..b731557 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest mypy types-PyYAML types-toml + python -m pip install flake8 pytest mypy types-PyYAML types-toml toml if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 @@ -40,4 +40,5 @@ jobs: - name: Lint with mypy run: | - mypy -p config_framework + if [ ${{ matrix.python-version }} <= 3.11 ]; then mypy -p config_framework --exclude .*/toml_read_only.py; fi + if [ ${{ matrix.python-version }} >= 3.11 ]; then mypy -p config_framework; fi