2021-05-03 16:35:24 +02:00
|
|
|
# This workflow will be executed when dev is updated:
|
|
|
|
# it will run the configured tests and upload the results on vfc_ci_dev.
|
|
|
|
|
|
|
|
name: "Verificarlo CI (dev)"
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Triggers the workflow when dev is updated
|
|
|
|
push:
|
|
|
|
branches: [ dev ]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run_verificarlo_tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: verificarlo/verificarlo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Run tests
|
2021-06-17 16:50:42 +02:00
|
|
|
run: vfc_ci test -g -r
|
2021-05-03 16:35:24 +02:00
|
|
|
|
|
|
|
- name: Commit test results
|
|
|
|
run: |
|
|
|
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
2021-09-02 10:43:13 +02:00
|
|
|
|
2021-05-03 16:35:24 +02:00
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "GitHub Action"
|
2021-09-02 10:43:13 +02:00
|
|
|
|
2021-05-03 16:35:24 +02:00
|
|
|
git checkout vfc_ci_dev
|
|
|
|
mkdir -p vfcruns
|
|
|
|
mv *.vfcrun.h5 vfcruns
|
|
|
|
git add vfcruns/*
|
|
|
|
git commit -m "[auto] New test results for commit ${git_hash}"
|
|
|
|
git push
|
2021-09-02 10:43:13 +02:00
|
|
|
|
2021-05-03 16:35:24 +02:00
|
|
|
- name: Upload raw results as artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: ${{github.sha}}.vfcraw
|
2021-09-02 10:43:13 +02:00
|
|
|
path: ./*.vfcraw.h5
|