From 5902d438dad3ddb38d2c93c9316d4d800c6ffc61 Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Sun, 28 Jul 2024 19:17:20 +0200 Subject: [PATCH] chore(workflows): Add CI configuration file Introduce a CI workflow for automated testing using GitHub Actions. This sets up pre-commit hooks and ensures testing on pull requests and push to master and main branches. Fixes #10 --- .../.github/workflows/ci.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 {{cookiecutter.hyphenated}}/.github/workflows/ci.yaml diff --git a/{{cookiecutter.hyphenated}}/.github/workflows/ci.yaml b/{{cookiecutter.hyphenated}}/.github/workflows/ci.yaml new file mode 100644 index 0000000..cf87d53 --- /dev/null +++ b/{{cookiecutter.hyphenated}}/.github/workflows/ci.yaml @@ -0,0 +1,25 @@ +--- +name: Continuous Integration 🔄 + +on: + pull_request: + push: + branches: + - master + - main + +jobs: + pre-commit: + name: Run pre-commit hooks 🪝 + runs-on: ubuntu-latest + steps: + - name: Set up repository 🧩 + uses: actions/checkout@v4 + - name: Set up Python 🐍 + uses: actions/setup-python@v5 + with: + python-version: "3.x" + cache: "pip" + - name: Run pre-commit hooks 🪝 + uses: pre-commit/action@v3.0.1 +...