File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Copilot Setup Steps
2+
3+ # This workflow is designed to be referenced by GitHub Copilot
4+ # to understand how to set up the development environment
5+
6+ on :
7+ workflow_dispatch :
8+
9+ jobs :
10+ setup :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.11"
21+ cache : pip
22+
23+ - name : Set up Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : " 20"
27+ cache : npm
28+
29+ - name : Upgrade pip
30+ run : |
31+ python -m pip install --upgrade pip
32+
33+ - name : Install uv (optional, for faster package management)
34+ run : |
35+ pip install uv
36+
37+ - name : Install pre-commit and pre-commit-uv
38+ run : |
39+ pip install pre-commit pre-commit-uv
40+
41+ - name : Install tox and tox-uv
42+ run : |
43+ pip install tox tox-uv
44+
45+ - name : Install project dependencies
46+ run : |
47+ pip install -e .[testing,code-style]
48+
49+ - name : Install Node.js dependencies (for SASS compilation)
50+ run : |
51+ npm install
52+
53+ - name : Setup pre-commit hooks
54+ run : |
55+ pre-commit install
56+
57+ - name : Verify installations
58+ run : |
59+ echo "Python version:"
60+ python --version
61+ echo ""
62+ echo "Node.js version:"
63+ node --version
64+ echo ""
65+ echo "npm version:"
66+ npm --version
67+ echo ""
68+ echo "pre-commit version:"
69+ pre-commit --version
70+ echo ""
71+ echo "tox version:"
72+ tox --version
73+ echo ""
74+ echo "Installed Python packages:"
75+ pip list | grep -E "(pre-commit|tox|sphinx|pytest)"
You can’t perform that action at this time.
0 commit comments