diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d0a8925e..8fb8783e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,7 +10,7 @@ jobs: hash: ${{ steps.hash.outputs.hash }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c with: python-version: '3.x' cache: 'pip' @@ -23,7 +23,7 @@ jobs: - name: generate hash id: hash run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 + - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 with: path: ./dist provenance: @@ -44,7 +44,7 @@ jobs: permissions: contents: write steps: - - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a + - uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 - name: create release run: > gh release create --draft --repo ${{ github.repository }} @@ -61,7 +61,7 @@ jobs: permissions: id-token: write steps: - - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a + - uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # Try uploading to Test PyPI first, in case something fails. - uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf with: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f5df7e93..81ae0207 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,16 +32,10 @@ jobs: - {name: 'Typing', python: '3.11', tox: typing} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c with: python-version: ${{ matrix.python }} cache: 'pip' cache-dependency-path: 'requirements/*.txt' - - name: cache mypy - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 - with: - path: ./.mypy_cache - key: mypy|${{ matrix.python }}|${{ hashFiles('requirements/mypy.txt') }} - if: matrix.tox == 'typing' - run: pip install tox - run: tox r -e ${{ matrix.tox }} diff --git a/pyproject.toml b/pyproject.toml index fec75e36..1ad4e4cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,7 @@ source = ["flask_sqlalchemy", "tests"] source = ["src", "*/site-packages"] [tool.mypy] +cache_dir = "/dev/null" python_version = "3.8" files = ["src/flask_sqlalchemy", "tests"] show_error_codes = true