refactor(templates): Simplify tap template file names with `post_gen_… #244
This file contains 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: E2E Cookiecutters | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: ["cookiecutter/**", "e2e-tests/cookiecutters/**"] | |
push: | |
branches: [main] | |
paths: ["cookiecutter/**", "e2e-tests/cookiecutters/**"] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
FORCE_COLOR: "1" | |
jobs: | |
lint: | |
name: Cookiecutter E2E ${{ matrix.python-version }} ${{ matrix.python-version }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- { python-version: "3.10", os: "ubuntu-latest" } | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4.1.1 | |
- name: Upgrade pip | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pip install pip | |
pip --version | |
- name: Install Poetry | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install poetry | |
pipx inject poetry poetry-plugin-export | |
poetry --version | |
poetry self show plugins | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
cache: 'pip' | |
cache-dependency-path: 'poetry.lock' | |
- name: Install pre-commit | |
run: | | |
pipx install pre-commit | |
pre-commit --version | |
- name: Install Nox | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install nox | |
pipx inject nox nox-poetry | |
nox --version | |
- name: Run Nox | |
run: | | |
nox --python=${{ matrix.python-version }} --session=test_cookiecutter | |
- name: Upload build artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
path: | | |
/tmp/tap-* | |
/tmp/target-* | |
/tmp/mapper-* | |
!/tmp/tap-*/.mypy_cache/ | |
!/tmp/target-*/.mypy_cache/ | |
!/tmp/mapper-*/.mypy_cache/ | |
!/tmp/tap-*/.tox/ | |
!/tmp/target-*/.tox/ | |
!/tmp/mapper-*/.tox/ |