Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zolfa-nd2reader
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo ZOLFANELLI
zolfa-nd2reader
Commits
c0cfed1c
Commit
c0cfed1c
authored
3 years ago
by
Ruben Verweij
Committed by
Lorenzo ZOLFANELLI
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename build script & try to add code climate coverage
parent
e05e3f95
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/code-climate.yml
+51
-0
51 additions, 0 deletions
.github/workflows/code-climate.yml
.github/workflows/python-package.yml
+1
-4
1 addition, 4 deletions
.github/workflows/python-package.yml
with
52 additions
and
4 deletions
.github/workflows/code-climate.yml
0 → 100644
+
51
−
0
View file @
c0cfed1c
name
:
CodeClimate
on
:
workflow_run
:
workflows
:
[
"
Build"
]
types
:
-
completed
jobs
:
code-climate
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
checkout repository
uses
:
actions/checkout@v2
-
name
:
Set up Code Climate test reporter
env
:
CC_TEST_REPORTER_ID
:
${{ secrets.CC_TEST_REPORTER_ID }}
run
:
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
-
name
:
Download coverage
uses
:
actions/github-script@v4.0.2
with
:
script
:
|
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "coverage"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/coverage.zip', Buffer.from(download.data));
-
name
:
Unzip coverage
run
:
|
mkdir coverage
cd coverage
unzip ../coverage.zip
-
name
:
Code Climate test reporter
env
:
CC_TEST_REPORTER_ID
:
${{ secrets.CC_TEST_REPORTER_ID }}
GIT_BRANCH
:
${{github.event.workflow_run.head_branch }}
GIT_COMMIT_SHA
:
${{github.event.workflow_run.head_commit.id }}
run
:
./cc-test-reporter after-build --exit-code $?
This diff is collapsed.
Click to expand it.
.github/workflows/python-package.yml
+
1
−
4
View file @
c0cfed1c
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Python package
name
:
Build
on
:
push
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment