Skip to content

Commit 5902d43

Browse files
committed
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 netbox-community#10
1 parent d920039 commit 5902d43

File tree

1 file changed

+25
-0
lines changed
  • {{cookiecutter.hyphenated}}/.github/workflows

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Continuous Integration 🔄
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
- main
10+
11+
jobs:
12+
pre-commit:
13+
name: Run pre-commit hooks 🪝
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Set up repository 🧩
17+
uses: actions/checkout@v4
18+
- name: Set up Python 🐍
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.x"
22+
cache: "pip"
23+
- name: Run pre-commit hooks 🪝
24+
uses: pre-commit/[email protected]
25+
...

0 commit comments

Comments
 (0)