-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b216547
commit caee3a1
Showing
11 changed files
with
191 additions
and
125 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy Documentation | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Publish Docker Images"] | ||
branches: [cicd] | ||
types: | ||
- completed | ||
- requested | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
needs: build-images | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.PAT }} | ||
- name: Build Docs | ||
continue-on-error: true | ||
run: | | ||
mkdir public | ||
export PUBLIC=$(realpath ./public) | ||
docker run --rm -u 1000:1000 -v $PUBLIC:/var/www ghcr.io/famura/simurlacra:sacher conda run -n pyrado bash -c "./build_docs.sh;sudo mkdir /var/www/pyrado; sudo cp -r Pyrado/doc/build/* /var/www/pyrado;mv RcsPySim/build/doc/html RcsPySim/build/doc/rcspysim; sudo cp -r RcsPySim/build/doc/rcspysim /var/www" | ||
echo $PUBLIC | ||
ls $PUBLIC quietioet | ||
- name: Deploy | ||
continue-on-error: true | ||
uses: JamesIves/github-pages-deploy-action@3.5.9 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: public |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Run Tests (future) | ||
|
||
on: | ||
push: | ||
branches: [cicd_future] | ||
pull_request: | ||
branches: [cicd_future] | ||
|
||
jobs: | ||
build-images: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
flavor: [sacher] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
outputs: | | ||
type=docker | ||
tags: | | ||
simurlacra:test | ||
build-args: | | ||
OPTION=${{ matrix.flavor }} | ||
cache-from: type=registry,ref=simurlacra/simurlacra:${{ matrix.flavor }} | ||
- name: Inspect | ||
run: | | ||
docker image inspect simurlacra:test | ||
- name: Execute tests | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
run: | | ||
export COVPATH=$(realpath .) | ||
docker run --rm -i -v $COVPATH:/cov simurlacra:test conda run -n pyrado bash -c "pytest Pyrado/tests --cov=./Pyrado --cov-report=xml -n 4 --verbose -m 'not visualization'; sudo cp ./coverage.xml /cov" | ||
sudo mkdir /home/user/ | ||
sudo mkdir /home/user/SimuRLacra | ||
sudo ln -s $COVPATH /home/user/SimuRLacra | ||
cd Pyrado | ||
- name: Send Coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v2.7.5 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: | | ||
coverage.xml:cobertura |
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
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
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
Oops, something went wrong.