Skip to content

Commit 3b355e8

Browse files
authored
Add basic CI (#5)
* Add basic CI * Remove M1 jobs * Fix CI + add ruff badge
1 parent 9a9675f commit 3b355e8

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

.github/dependabot.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: pip
5+
directory: /
6+
schedule:
7+
interval: monthly
8+
groups:
9+
all:
10+
patterns:
11+
- '*'
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: monthly
17+
groups:
18+
all:
19+
patterns:
20+
- '*'

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: python
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
13+
python:
14+
strategy:
15+
matrix:
16+
os:
17+
- macos-latest
18+
- ubuntu-latest
19+
- windows-latest
20+
python-version:
21+
- 3.9
22+
- 3.12
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
steps:
27+
28+
- uses: actions/checkout@v2
29+
30+
- uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- run: pip install .[dev]
35+
36+
- run: ruff check .
37+
38+
- run: ruff format --check .
39+
40+
- run: python -m build --wheel

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.egg-info/
2+
build/
3+
dist/

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Ptah
22

3+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
4+
[![Documentation Status](https://readthedocs.org/projects/ptah/badge/?version=latest)](https://ptah.readthedocs.io/en/latest/?badge=latest)
5+
36
Kubernetes development toolkit, with a focus on rapid iteration and local
47
hosting.

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ doc = [
1616
"mkdocs==1.6.0",
1717
"mkdocs-material==9.5.25",
1818
]
19+
20+
[tool.setuptools.package-data]
21+
ptah = ["**/*.py"]

0 commit comments

Comments
 (0)