Skip to content

Commit

Permalink
Merge pull request #81 from nennigb/ci-update
Browse files Browse the repository at this point in the history
Update action version in CI
  • Loading branch information
luclaurent authored Jul 2, 2024
2 parents 2ed0f73 + b162494 commit 177616b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci-mac-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ on:
schedule:
# * is a special character in YAML so you have to quote this string
# run at 02:01 on every 15th day-of-month.
- cron: '1 2 */15 * *'
- cron: '1 2 */15 * *'


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.8, '3.10', '3.11']
env:
# set env variable for Wand
MAGICK_HOME: '/opt/homebrew'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -60,11 +64,12 @@ jobs:
- name: Install amc2moodle
run: |
# add -e to have write access for test. TODO : change with temp file
pip install -e .
pip install -e .
- name: Test amc2moodle
run: |
python -m amc2moodle.amc2moodle.test
- name: Test moodle2amc
run: |
# add automultiplechoice.sty local copy to LaTeX PATH (for this step)
Expand All @@ -79,14 +84,14 @@ jobs:
# amc2moodle
- name: Archive XML test output of amc2moodle (without tikz)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_notikz_${{ matrix.python-version }}
path: test_notikz.xml

- name: Archive XML test output of amc2moodle (with tikz)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_tikz_${{ matrix.python-version }}
path: test_tikz.xml
Expand All @@ -99,7 +104,7 @@ jobs:
- name: Archive LaTeX test output (moodle2amc)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_moodle-bank-exemple_${{ matrix.python-version }}
path: moodle-bank-exemple-output
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -78,14 +78,14 @@ jobs:
# amc2moodle
- name: Archive XML test output of amc2moodle (without tikz)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_notikz_${{ matrix.python-version }}
path: test_notikz.xml

- name: Archive XML test output of amc2moodle (with tikz)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_tikz_${{ matrix.python-version }}
path: test_tikz.xml
Expand All @@ -98,7 +98,7 @@ jobs:
- name: Archive LaTeX test output (moodle2amc)
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@main
with:
name: test_moodle-bank-exemple_${{ matrix.python-version }}
path: moodle-bank-exemple-output
Expand Down

0 comments on commit 177616b

Please sign in to comment.