Skip to content

Remove support for poetry and hatchling backends #7

Remove support for poetry and hatchling backends

Remove support for poetry and hatchling backends #7

Workflow file for this run

name: Test Template Instance
on:
pull_request:
branches:
- main
jobs:
test-project-creation:
name: Test project creation with ${{ matrix.typing }} typing
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typing: [no_typing, loose, strict]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Dependencies
run: |
pip install copier pre-commit
- name: Create new project
run: |
mkdir my-project
copier copy \
-d project_name=test \
-d project_short_description="A great package." \
-d python_name=test \
-d url=https://github.com/gh_actions/test \
-d min_python_version=3.10 \
-d org=gh_actions \
-d full_name=gh_actions \
-d [email protected] \
-d license=BSD \
-d backend=setuptools \
-d typing=${{ matrix.typing }} \
-d coc=our_coc \
--vcs-ref HEAD \
. my-project
- name: Check generated project installs with pip
run: |
cd my-project
git config --global user.email "[email protected]"
git config --global user.name "gh_actions"
git init
git add .
git commit -m "Initial commit"
pip install -e .
format-created-project:
name: Try formatting the created project with ${{ matrix.typing }} typing
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typing: [no_typing, loose, strict]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Dependencies
run: |
pip install copier pre-commit
- name: Create new project
run: |
mkdir my-project
copier copy \
-d project_name=test \
-d project_short_description="A great package." \
-d python_name=test \
-d url=https://github.com/gh_actions/test \
-d min_python_version=3.10 \
-d org=gh_actions \
-d full_name=gh_actions \
-d [email protected] \
-d license=BSD \
-d backend=setuptools \
-d typing=${{ matrix.typing }} \
-d coc=our_coc \
--vcs-ref HEAD \
. my-project
- name: Run formatting checks
run: |
cd my-project
git init
git config --global user.email "[email protected]"
git config --global user.name "gh_actions"
git add --all
git commit -m "Initial commit"
pre-commit run --all-files