⬆️ Bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: build | |
| on: [pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.12', '3.9', '3.10', '3.11'] | |
| fail-fast: false | |
| env: | |
| # cache busting if requirements haven't changed | |
| CACHE_EPOCH: 1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache pip | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }} | |
| - name: Cache pre-commit | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: ${{ runner.os }}-pre-commit-${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install cookiecutter build | |
| git config --global user.email "you@example.com" | |
| git config --global user.name "Your Name" | |
| git config --global init.defaultBranch main | |
| - name: with neither git nor pre-commit | |
| run: | | |
| GIT=$(which git) | |
| sudo chmod -x ${GIT} | |
| cookiecutter -v --no-input -f -o /tmp/cookie_python . project_slug=foo1-bar minimum_python_version=${{ matrix.python-version }} | |
| python -m pip install /tmp/cookie_python/foo1-bar | |
| python -c "import foo1_bar; print(foo1_bar.__version__)" | |
| python -m pip uninstall -y foo1 | |
| sudo chmod +x ${GIT} | |
| - name: with git only | |
| run: | | |
| cookiecutter -v --no-input -f -o /tmp/cookie_python . project_slug=foo2 minimum_python_version=${{ matrix.python-version }} | |
| python -m pip install /tmp/cookie_python/foo2 | |
| python -m pip uninstall -y foo2 | |
| - name: with git and pre-commit | |
| run: | | |
| python -m pip install pre-commit | |
| cookiecutter -v --no-input -f -o /tmp/cookie_python . project_slug=foo3 minimum_python_version=${{ matrix.python-version }} | |
| python -m pip install /tmp/cookie_python/foo3 | |
| python -m pip uninstall -y foo3 | |
| cd /tmp/cookie_python/foo3 | |
| python -c "import tests" | |
| python -m pip install .[dev] | |
| make -C docs html | |
| - name: upload generated projects | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: cookie_python_${{ matrix.python-version }} | |
| path: /tmp/cookie_python |