Skip to content

Commit

Permalink
Merge pull request #107 from byeongkeunahn/main
Browse files Browse the repository at this point in the history
CI: exclude large inputs from dev mode testing
  • Loading branch information
byeongkeunahn authored Sep 4, 2024
2 parents 259747c + 051b4cb commit 359843e
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Check cargo build
if: ${{ matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-pc-windows-gnu' }}
run: |
python ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci.json
python ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci-dev.json
- name: Check cargo build --release
if: ${{ matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-pc-windows-gnu' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Check cargo build
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
run: |
python3 ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci.json
python3 ./scripts/ci.py ${{ runner.temp }} _ CargoDev 0 ./tests/ci-dev.json
- name: Check cargo build --release
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Check cargo build
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
run: |
python .\scripts\ci.py ${{ runner.temp }} _ CargoDev 0 .\tests\ci.json
python .\scripts\ci.py ${{ runner.temp }} _ CargoDev 0 .\tests\ci-dev.json
- name: Check cargo build --release
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sys

if __name__ == "__main__":
with open("tests/ci.json", "r") as f:
with open(sys.argv[5], "r") as f:
ci_jobs = json.load(f)

try:
Expand Down
6 changes: 6 additions & 0 deletions tests/boj_2751_small.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
5
1000000
-1000000
999999
0
-461
5 changes: 5 additions & 0 deletions tests/boj_2751_small.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-1000000
-461
0
999999
1000000
42 changes: 42 additions & 0 deletions tests/ci-dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"solution": "./basm/src/solution.rs",
"input": "./tests/boj_1000.in",
"output": "./tests/boj_1000.out"
},
{
"solution": "./tests/boj_1001.rs",
"input": "./tests/boj_1001.in",
"output": "./tests/boj_1001.out"
},
{
"solution": "./tests/boj_2587.rs",
"input": "./tests/boj_2587.in",
"output": "./tests/boj_2587.out"
},
{
"solution": "./tests/boj_2751.rs",
"input": "./tests/boj_2751_small.in",
"output": "./tests/boj_2751_small.out"
},
{
"solution": "./tests/boj_3745.rs",
"input": "./tests/boj_3745.in",
"output": "./tests/boj_3745.out"
},
{
"solution": "./tests/boj_14939.rs",
"input": "./tests/boj_14939.in",
"output": "./tests/boj_14939.out"
},
{
"solution": "./tests/reloc.rs",
"input": "./tests/reloc.in",
"output": "./tests/reloc.out"
},
{
"solution": "./tests/utf8.rs",
"input": "./tests/utf8.in",
"output": "./tests/utf8.out"
}
]

0 comments on commit 359843e

Please sign in to comment.