diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a086c0d..0ca6545 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,16 +7,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.12 architecture: x64 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }} - restore-keys: | - ${{ runner.os }}-pip- + cache: 'pipenv' + cache-dependency-path: 'setup.py' - run: pip install --upgrade -r requirements_dev.txt - run: black --check *.py */ - run: isort --check-only *.py */ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c430a6f..f8ba7cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} architecture: x64 + cache: 'pipenv' + cache-dependency-path: 'setup.py' - name: Install normal dependencies run: pip install -r requirements_dev.txt - run: pip install 'jsonref${{ matrix.jsonref-version }}'