Skip to content

Commit ae57de0

Browse files
Copilotfermga
andcommitted
feat: Add GitHub Copilot setup configuration for TNFR development
Create copilot-setup-steps.yml workflow to preconfigure the Copilot agent's development environment with TNFR dependencies and verification steps. Intent: Strengthen structural coherence by ensuring Copilot can explore, study, investigate, and develop TNFR implementations with proper tooling. Operators involved: Emission (AL) - initiating development workflow Coherence (IL) - stabilizing environment setup Key changes: - Created .github/workflows/copilot-setup-steps.yml - Configured Python 3.11 setup with pip caching - Installed core dependencies: test, numpy, yaml, orjson - Added verification steps to confirm TNFR installation - Enabled workflow_dispatch for manual testing - Auto-triggers on workflow file changes Expected benefits: - Faster Copilot startup (cached dependencies) - Reliable development environment (pre-installed deps) - Immediate validation capability (test infrastructure ready) - Alignment with TNFR mission: explore, study, investigate, develop Affected invariants: #8 (Controlled Determinism - reproducible environment) Metrics: Setup time expected to decrease, C(t) of development workflow ↑ Co-authored-by: fermga <203334638+fermga@users.noreply.github.com>
1 parent a9c1781 commit ae57de0

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation,
4+
# and allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# Required for actions/checkout - Copilot needs to access the repository
23+
contents: read
24+
25+
# Configure the environment for TNFR development
26+
# Purpose: Enable exploration, study, investigation, and development of TNFR
27+
# (Resonant Fractal Nature Theory - modeling coherent patterns through resonance)
28+
steps:
29+
- name: Checkout TNFR repository
30+
uses: actions/checkout@v5
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v6
34+
with:
35+
# Using Python 3.11 - the primary version for TNFR development and CI
36+
python-version: "3.11"
37+
cache: "pip"
38+
39+
- name: Install TNFR dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
# Install TNFR with test, serialization, and core dependencies
43+
# This provides full environment for exploring and developing TNFR:
44+
# - Core operators (13 canonical structural transformations)
45+
# - Test infrastructure for validating invariants
46+
# - Serialization for state preservation
47+
# - NumPy for structural computations
48+
python -m pip install .[test,numpy,yaml,orjson]
49+
50+
- name: Verify TNFR installation
51+
run: |
52+
# Verify the TNFR package is properly installed
53+
python -c "import tnfr; print(f'TNFR version: {tnfr.__version__}')"
54+
# Verify core modules are accessible
55+
python -c "from tnfr.operators import Emission, Coherence, Resonance; print('✓ Core operators available')"
56+
python -c "from tnfr.metrics import compute_coherence; print('✓ Metrics available')"
57+
# Display Python environment info
58+
python --version
59+
pip list | grep -E "(tnfr|pytest|numpy|networkx)"

0 commit comments

Comments
 (0)