GitHub CD #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub CD | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 15 * * 5" | |
jobs: | |
triplestore: | |
name: Quarkus Triplestore | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: LDP tests | |
run: | | |
docker-compose -f trellis-quarkus-triplestore-compose.yml up -d | |
python verify_running.py --baseurl http://localhost/ | |
python setup.py test -a "--baseurl=http://localhost/" | |
sh run_ldp_testsuite.sh | |
- name: Publish reports | |
run: | | |
aws s3 cp --recursive --exclude "*" --include "*.html" --include "*.ttl" ./report s3://$AWS_BUCKET/ldp/report-mp-ts | |
aws s3 cp --recursive --content-type "application/ld+json" --exclude "*" --include "*.jsonld" ./report s3://$AWS_BUCKET/ldp/report-mp-ts | |
env: | |
AWS_BUCKET: ${{ secrets.AWS_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }} | |
postgresql: | |
name: Quarkus PostgreSQL | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: LDP tests | |
run: | | |
docker-compose -f trellis-quarkus-postgresql-compose.yml up -d | |
python verify_running.py --baseurl http://localhost/ | |
python setup.py test -a "--baseurl=http://localhost/" | |
sh run_ldp_testsuite.sh | |
- name: Publish reports | |
run: | | |
aws s3 cp --recursive --exclude "*" --include "*.html" --include "*.ttl" ./report s3://$AWS_BUCKET/ldp/report-mp-pg | |
aws s3 cp --recursive --exclude "*" --include "*.html" --include "*.ttl" ./report s3://$AWS_BUCKET/ldp/report | |
aws s3 cp --recursive --content-type "application/ld+json" --exclude "*" --include "*.jsonld" ./report s3://$AWS_BUCKET/ldp/report-mp-pg | |
aws s3 cp --recursive --content-type "application/ld+json" --exclude "*" --include "*.jsonld" ./report s3://$AWS_BUCKET/ldp/report | |
env: | |
AWS_BUCKET: ${{ secrets.AWS_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }} | |