diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 5201264..e86cb9a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -22,17 +22,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" - - uses: actions/cache@v3 - name: Configure pip caching - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- + python-version: "3.11" + cache: pip - name: Install dependencies run: | - pip install cookiecutter + pip install -r requirements.txt - name: Build demo from template run: |- cat main/input-for-demo.txt | cookiecutter main diff --git a/{{cookiecutter.hyphenated}}/.github/workflows/publish.yml b/{{cookiecutter.hyphenated}}/.github/workflows/publish.yml index 04ffb92..14d4550 100644 --- a/{{cookiecutter.hyphenated}}/.github/workflows/publish.yml +++ b/{{cookiecutter.hyphenated}}/.github/workflows/publish.yml @@ -19,13 +19,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v3 - name: Configure pip caching - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: pip + cache-dependency-path: setup.py - name: Install dependencies run: | pip install -e '.[test]' @@ -41,13 +36,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.11" - - uses: actions/cache@v3 - name: Configure pip caching - with: - path: ~/.cache/pip - key: ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-publish-pip- + cache: pip + cache-dependency-path: setup.py - name: Install dependencies run: | pip install setuptools wheel twine build diff --git a/{{cookiecutter.hyphenated}}/.github/workflows/test.yml b/{{cookiecutter.hyphenated}}/.github/workflows/test.yml index ab549f7..1aeef63 100644 --- a/{{cookiecutter.hyphenated}}/.github/workflows/test.yml +++ b/{{cookiecutter.hyphenated}}/.github/workflows/test.yml @@ -17,13 +17,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v3 - name: Configure pip caching - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- + cache: pip + cache-dependency-path: setup.py - name: Install dependencies run: | pip install -e '.[test]'