Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
Service Desk
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
Michele Nottoli
gext
Commits
55876b86
Commit
55876b86
authored
1 year ago
by
Michele Nottoli
Browse files
Options
Downloads
Patches
Plain Diff
Added CI
parent
71b1c3aa
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Added CI
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+56
-0
56 additions, 0 deletions
.gitlab-ci.yml
README.md
+7
-0
7 additions, 0 deletions
README.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
64 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
56
−
0
View file @
55876b86
stages
:
-
test
-
lint
-
coverage
variables
:
PYLINT_CMD
:
>
(pylint grext --exit-zero > pylint.out) || true
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
default
:
image
:
python:latest
cache
:
paths
:
-
.cache/pip
before_script
:
-
python -V
-
pip install virtualenv
-
virtualenv venv
-
source venv/bin/activate
-
pip install .
-
pip install pylint anybadge coverage
tags
:
-
Maths
test
:
stage
:
test
script
:
-
coverage run -m pytest
artifacts
:
paths
:
-
.coverage
lint
:
stage
:
lint
script
:
-
mkdir -p ./public
-
pylint grext --exit-zero | tee pylint.out
-
score=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.out)
-
echo "Pylint score was $score"
-
anybadge --value=$score --file=public/pylint_badge.svg pylint
-
echo $score | awk '{if( $1 > 8.0 ) exit 0; exit 1;}'
artifacts
:
paths
:
-
public/pylint_badge.svg
coverage
:
stage
:
coverage
script
:
-
mkdir -p ./public
-
coverage report | tee report.out
-
covperc=`cat report.out | grep 'TOTAL' | sed -e 's/%//g' | awk '{print $4}'`
-
anybadge --value=$covperc --file=public/coverage.svg coverage
artifacts
:
paths
:
-
public/coverage.svg
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
7
−
0
View file @
55876b86



# grext: Grassmann Extrapolation Library
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
55876b86
...
...
@@ -4,7 +4,7 @@ setup(
name
=
"
grext
"
,
version
=
"
0.2.0
"
,
packages
=
find_packages
(),
install_requires
=
[
"
numpy
"
,
"
scipy
"
],
install_requires
=
[
"
numpy
"
,
"
scipy
"
,
"
pytest
"
],
author
=
"
Michele Nottoli
"
,
description
=
"
Tools for generating new guesses for SCF calculations.
"
,
classifiers
=
[
...
...
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