Skip to content

Update the CI

Update the CI #5

Workflow file for this run

name: continuous-integration
on: push
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Ant
uses: cedx/setup-ant@v2
with:
optional-tasks: true
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.ivy2/cache
key: ${{runner.os}}-ivy-${{hashFiles('**/ivy.xml')}}
restore-keys: ${{runner.os}}-ivy-
- name: Install dependencies
run: ant install
- name: Run tests
run: ant -emacs test
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Ant
uses: cedx/setup-ant@v2
with:
optional-tasks: true
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: pip
python-version: 3.12
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.ivy2/cache
key: ${{runner.os}}-ivy-${{hashFiles('**/ivy.xml')}}
restore-keys: ${{runner.os}}-ivy-
- name: Install dependencies
run: |
ant install
pip install --requirement=etc/requirements.txt
- name: Deploy documentation
run: |
ant doc
mkdocs gh-deploy --config-file=etc/mkdocs.yaml --force