3030 - name : Verify library compiles
3131 run : |
3232 # Verify all modules compile together
33- chpl -M src --no-codegen src/quickchpl.chpl
33+ chpl -M src -M src/quickchpl - -no-codegen src/quickchpl.chpl
3434 echo "✓ All modules compile successfully"
3535
3636 test-unit :
@@ -47,19 +47,19 @@ jobs:
4747 - name : Run Generator Tests
4848 run : |
4949 echo "Running Generator Tests..."
50- chpl test/unit/GeneratorTests.chpl src/* .chpl -o /tmp/generator_tests
50+ chpl -M src -M src/quickchpl test/unit/GeneratorTests.chpl -o /tmp/generator_tests
5151 /tmp/generator_tests
5252
5353 - name : Run Shrinker Tests
5454 run : |
5555 echo "Running Shrinker Tests..."
56- chpl test/unit/ShrinkerTests.chpl src/* .chpl -o /tmp/shrinker_tests
56+ chpl -M src -M src/quickchpl test/unit/ShrinkerTests.chpl -o /tmp/shrinker_tests
5757 /tmp/shrinker_tests
5858
5959 - name : Run Property Tests
6060 run : |
6161 echo "Running Property Tests..."
62- chpl test/unit/PropertyTests.chpl src/* .chpl -o /tmp/property_tests
62+ chpl -M src -M src/quickchpl test/unit/PropertyTests.chpl -o /tmp/property_tests
6363 /tmp/property_tests
6464
6565 test-examples :
@@ -76,19 +76,19 @@ jobs:
7676 - name : Run Getting Started Example
7777 run : |
7878 echo "Running Getting Started Example..."
79- chpl examples/GettingStarted.chpl src/* .chpl -o /tmp/getting_started
79+ chpl -M src -M src/quickchpl examples/GettingStarted .chpl -o /tmp/getting_started
8080 /tmp/getting_started
8181
8282 - name : Run Algebraic Properties Example
8383 run : |
8484 echo "Running Algebraic Properties Example..."
85- chpl examples/AlgebraicProperties.chpl src/* .chpl -o /tmp/algebraic
85+ chpl -M src -M src/quickchpl examples/AlgebraicProperties .chpl -o /tmp/algebraic
8686 /tmp/algebraic
8787
8888 - name : Run Custom Generators Example
8989 run : |
9090 echo "Running Custom Generators Example..."
91- chpl examples/CustomGenerators.chpl src/* .chpl -o /tmp/custom_gen
91+ chpl -M src -M src/quickchpl examples/CustomGenerators .chpl -o /tmp/custom_gen
9292 /tmp/custom_gen
9393
9494 test-self :
@@ -104,7 +104,7 @@ jobs:
104104
105105 - name : Run quickchpl self-tests
106106 run : |
107- chpl test/properties/SelfTests.chpl src/* .chpl -o /tmp/self_tests
107+ chpl -M src -M src/quickchpl test/properties/SelfTests.chpl -o /tmp/self_tests
108108 /tmp/self_tests --numTests=${{ env.QUICKCHPL_NUM_TESTS }}
109109
110110 test-matrix :
@@ -124,7 +124,7 @@ jobs:
124124 - name : Build with Chapel ${{ matrix.chapel-version }}
125125 run : |
126126 chpl --version
127- chpl test/unit/GeneratorTests.chpl src/* .chpl -o /tmp/test
127+ chpl -M src -M src/quickchpl test/unit/GeneratorTests.chpl -o /tmp/test
128128 /tmp/test
129129
130130 lint :
@@ -140,7 +140,7 @@ jobs:
140140 run : |
141141 echo "Running chplcheck linter..."
142142 chplcheck --version || echo "chplcheck version unknown"
143- chplcheck src/*.chpl test/*.chpl examples/*.chpl > chplcheck.log 2>&1 || true
143+ chplcheck src/*.chpl src/quickchpl/*.chpl test/*.chpl test/** /*.chpl examples/*.chpl > chplcheck.log 2>&1 || true
144144 cat chplcheck.log
145145
146146 # Count violations (excluding intentional API design decisions)
@@ -152,9 +152,8 @@ jobs:
152152
153153 # Known acceptable violations:
154154 # - 8 CamelCaseRecords (generator types - intentional API)
155- # - 21 UnusedLoopIndex (_unused variable - Chapel limitation)
156155 # - 1 PascalCaseModules (quickchpl - package name)
157- ACCEPTABLE=30
156+ ACCEPTABLE=9
158157
159158 if [ "$VIOLATIONS" -gt "$ACCEPTABLE" ]; then
160159 echo "❌ Too many chplcheck violations (expected <=$ACCEPTABLE, got $VIOLATIONS)"
@@ -166,7 +165,7 @@ jobs:
166165 - name : Check for trailing whitespace
167166 run : |
168167 echo "Checking for trailing whitespace..."
169- ! grep -rn '[[:space:]]$' src/*.chpl test/*.chpl examples/*.chpl || {
168+ ! grep -rn '[[:space:]]$' src/*.chpl src/quickchpl/*.chpl test/*.chpl test/** /*.chpl examples/*.chpl || {
170169 echo "Found trailing whitespace"
171170 exit 1
172171 }
@@ -190,10 +189,9 @@ jobs:
190189
191190 - name : Generate documentation with chpldoc
192191 run : |
193- cd src
194- for file in *.chpl; do
192+ for file in src/quickchpl.chpl src/quickchpl/*.chpl; do
195193 echo "Generating docs for $file..."
196- chpldoc "$file" --output-dir ../ docs/api || echo "Warning: chpldoc failed for $file"
194+ chpldoc "$file" --output-dir docs/api || echo "Warning: chpldoc failed for $file"
197195 done
198196
199197 - name : Upload documentation artifacts
0 commit comments