Skip to content

Commit

Permalink
chore(workflows): Add CI configuration file
Browse files Browse the repository at this point in the history
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 netbox-community#10
  • Loading branch information
pheus committed Jul 28, 2024
1 parent d920039 commit 5902d43
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions {{cookiecutter.hyphenated}}/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
...

0 comments on commit 5902d43

Please sign in to comment.