Skip to content

Commit

Permalink
update workflows with new syntax and directory for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luclaurent committed Oct 6, 2024
1 parent d37a5de commit 63e902e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci-mac-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ jobs:
# add automultiplechoice.sty local copy to LaTeX PATH (for this step)
# export TEXINPUTS=.:./tests/payload_test_amc2moodle/:$TEXINPUTS (during tests, automultiplechoice.sty is copied in the temprorary test folder )
python -m amc2moodle.tests.test_moodle2amc
- name: Test text parser
run: |
python -m amc2moodle.tests.test_utils_text
- name: Test calculated questions parsers
run: |
python -m amc2moodle.tests.test_utils
python -m amc2moodle.tests.test_utils_calculatedParser
# Store output files
Expand All @@ -87,20 +90,20 @@ jobs:
uses: actions/upload-artifact@main
with:
name: test_notikz_${{ matrix.python-version }}
path: test_notikz.xml
path: output_tests/test_notikz.xml

- name: Archive XML test output of amc2moodle (with tikz)
if: ${{ always() }}
uses: actions/upload-artifact@main
with:
name: test_tikz_${{ matrix.python-version }}
path: test_tikz.xml
path: output_tests/test_tikz.xml
# moodle2amc
- name: Move latex output
if: ${{ always() }}
run: |
mkdir moodle-bank-exemple-output
mv test_moodle-bank-exemple.* moodle-bank-exemple-output/
mv output_tests/test_moodle-bank-exemple.* moodle-bank-exemple-output/
- name: Archive LaTeX test output (moodle2amc)
if: ${{ always() }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ jobs:
# add automultiplechoice.sty local copy to LaTeX PATH (for this step)
# export TEXINPUTS=.:./tests/payload_test_amc2moodle/:$TEXINPUTS (during tests, automultiplechoice.sty is copied in the temprorary test folder )
python -m amc2moodle.tests.test_moodle2amc
- name: Test text parser
run: |
python -m amc2moodle.tests.test_utils_text
- name: Test calculated questions parsers
run: |
python -m amc2moodle.tests.test_utils
python -m amc2moodle.tests.test_utils_calculatedParser
# Store output files
# amc2moodle
Expand All @@ -81,20 +84,20 @@ jobs:
uses: actions/upload-artifact@main
with:
name: test_notikz_${{ matrix.python-version }}
path: test_notikz.xml
path: output_tests/test_notikz.xml

- name: Archive XML test output of amc2moodle (with tikz)
if: ${{ always() }}
uses: actions/upload-artifact@main
with:
name: test_tikz_${{ matrix.python-version }}
path: test_tikz.xml
path: output_tests/test_tikz.xml
# moodle2amc
- name: Move latex output
if: ${{ always() }}
run: |
mkdir moodle-bank-exemple-output
mv test_moodle-bank-exemple.* moodle-bank-exemple-output/
mv output_tests/test_moodle-bank-exemple.* moodle-bank-exemple-output/
- name: Archive LaTeX test output (moodle2amc)
if: ${{ always() }}
Expand Down

0 comments on commit 63e902e

Please sign in to comment.