Skip to content

Commit 818f09a

Browse files
committed
Rewrite readme, add basic pipeline actions
1 parent 4b2b4d1 commit 818f09a

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
lint-format-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install Poetry
22+
run: curl -sSL https://install.python-poetry.org | python3 -
23+
24+
- name: Configure Poetry Path
25+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
26+
27+
- name: Install Dependencies
28+
run: poetry install --with dev
29+
30+
- name: Check Code Format (black)
31+
run: poetry run black --check tfworker tests
32+
33+
- name: Check Imports Sorted (isort)
34+
run: poetry run isort --check-only tfworker tests
35+
36+
- name: Run Lint (flake8)
37+
run: poetry run flake8 --ignore E501,W503 tfworker tests
38+
39+
- name: Run Tests
40+
run: poetry run pytest -p no:warnings --disable-socket

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ clean:
3131
@rm -rf build dist .eggs terraform_worker.egg-info
3232
@find . -name *.pyc -exec rm {} \;
3333
@find . -name __pycache__ -type d -exec rmdir {} \;
34+
35+
triage-export:
36+
@echo "📥 Exporting open, untriaged issues for AI review..."
37+
gh issue list --repo ephur/terraform-worker --state open --limit 1000 --json number,title,body,labels | \
38+
jq '[.[] | select(.labels | all(.name != "triaged"))]' > open_issues.json
39+
@echo "✅ Issues written to open_issues.json"
40+
41+
triage-preview:
42+
@echo "🔍 Previewing untriaged issue titles..."
43+
@if [ ! -f open_issues.json ]; then \
44+
$(MAKE) triage-export; \
45+
fi
46+
jq -r '.[] | "\(.number): \(.title)"' open_issues.json
47+
48+
ready: lint format test
49+
@echo "✅ All checks passed. You are ready to commit or push."

0 commit comments

Comments
 (0)