Skip to content

Commit

Permalink
gross bugs fixed, cookiecutter now runs to completion
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Jun 12, 2024
1 parent fded55f commit 522fad8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 48 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# GitHub CI build pipeline
name: cookiecutter-comfy-extension CI build
# # GitHub CI build pipeline
# name: cookiecutter-comfy-extension CI build

on:
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ${{ matrix.os }}
env:
PYTHONIOENCODING: "utf8"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9"]
# on:
# pull_request:
# branches:
# - master
# - main
# jobs:
# build:
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# python-version: ["3.9"]
# runs-on: ${{ matrix.os }}
# env:
# PYTHONIOENCODING: "utf8"

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade build coverage twine wheel
pip install .
- name: Run Tests
run: |
pytest tests/
# - name: Run package creation
# run: |
# python -m build
# - name: Archive package
# uses: actions/upload-artifact@v2
# with:
# name: cookie-cutter
# path: src/dist
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install --upgrade build coverage twine wheel
# pip install .
# - name: Run Tests
# run: |
# pytest tests/
# # - name: Run package creation
# # run: |
# # python -m build
# # - name: Archive package
# # uses: actions/upload-artifact@v2
# # with:
# # name: cookie-cutter
# # # path: src/dist
8 changes: 0 additions & 8 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,5 @@


if __name__ == '__main__':

# if '{{ cookiecutter.create_author_file }}' != 'y':
# pathlib.Path('AUTHORS.rst').unlink()
# pathlib.Path('docs', 'authors.rst').unlink()

# if 'no' in '{{ cookiecutter.command_line_interface|lower }}':
# pathlib.Path('src', '{{ cookiecutter.project_slug }}', 'cli.py').unlink()

if 'Not open source' == '{{ cookiecutter.open_source_license }}':
pathlib.Path('LICENSE').unlink()
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: {% raw %} ${{ matrix.os }} {% endraw %}
env:
PYTHONIOENCODING: "utf8"
strategy:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: {% raw %} ${{ matrix.python-version }} {% endraw %}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 522fad8

Please sign in to comment.