-
Notifications
You must be signed in to change notification settings - Fork 258
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
1138-4EB
committed
Dec 1, 2019
1 parent
157fae6
commit 64a40cf
Showing
3 changed files
with
50 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
docker run --rm -t \ | ||
-v $(pwd):/src \ | ||
-w /src \ | ||
-e PYTHONPATH=/src \ | ||
"$IMAGE" \ | ||
"$@" |
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,37 @@ | ||
name: 'coverage' | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: '0 0 * * 5' | ||
|
||
jobs: | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_REGISTRY: docker.pkg.github.com | ||
IMAGE: docker.pkg.github.com/vunit/vunit/dev:llvm | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: git submodule update --init --recursive | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Docker login | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo "$GITHUB_TOKEN" | docker login -u vunit-gha --password-stdin "$DOCKER_REGISTRY" | ||
docker pull $IMAGE | ||
docker logout "$DOCKER_REGISTRY" | ||
- name: Run coverage | ||
run: | | ||
./.github/run.sh tox -e coverage | ||
./.github/run.sh coverage html --directory=htmlcov | ||
- name: Report coverage | ||
run: ./.github/run.sh coverage report -m --skip-covered | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: VUnit_coverage | ||
path: htmlcov |
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