From 51d1c918a20d8ac07bbc57b0feee455064f004ee Mon Sep 17 00:00:00 2001 From: Jake <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:08:11 +0000 Subject: [PATCH] ci: add CI for template instantiation --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f3a29ac --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Test Template Instance + +on: + pull_request: + branches: + - main + + +jobs: + Creation: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.9" + - name: Install Dependencies + run: | + pip install copier pre-commit + - name: Create copy + run: | + copier copy \ + -d project_name=test \ + -d org=gh_actions \ + -d full_name=gh_actions \ + -d email=foo@example.com \ + -d license=BSD \ + -d backend=setuptools \ + -d typing=strict \ + -d coc=our_coc \ + project_template instance + - name: linting + run: | + cd instance + pre-commit run --all + - name: project-install + run: pip install .