Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Apr 11, 2024
1 parent 4c7562b commit 44d6b87
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8"]

env:
KNAPSACK_DATA: ${{ github.workspace }}/data/knapsack
SUBSET_SUM_DATA: ${{ github.workspace }}/data/subset_sum
MULITPLE_CHOICE_SUBSET_SUM_DATA: ${{ github.workspace }}/data/multiple_choice_subset_sum

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -31,14 +36,7 @@ jobs:
cmake --build build --parallel
- name: Run unit tests
working-directory: build/test
run: |
echo "KNAPSACK_DATA: ${KNAPSACK_DATA}"
ls "${KNAPSACK_DATA}"
ctest --parallel
env:
KNAPSACK_DATA: ${{ github.workspace }}/data/knapsack
SUBSET_SUM_DATA: ${{ github.workspace }}/data/subset_sum
MULITPLE_CHOICE_SUBSET_SUM_DATA: ${{ github.workspace }}/data/multiple_choice_subset_sum
run: ctest --parallel
- name: Run tests
run: python3 -u scripts/run_tests.py test_results
- name: Checkout main branch
Expand Down

0 comments on commit 44d6b87

Please sign in to comment.