Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autotest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nabr
autotest
Commits
62cc08a2
Commit
62cc08a2
authored
Mar 17, 2021
by
nabr
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
f3005253
No related branches found
No related tags found
No related merge requests found
Pipeline
#1571
passed
Mar 17, 2021
Stage: linting
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-0
23 additions, 0 deletions
.gitlab-ci.yml
with
23 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
23
−
0
View file @
62cc08a2
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
image
:
python:latest
stages
:
-
linting
-
test
before_script
:
-
cat /proc/version
#print out operations system
-
python -V
# Print out python version for debugging
-
pip install pytest flake8
-
if [ -f requirements.txt ]; then pip install -r requirements.txt;fi
linting
:
stage
:
linting
script
:
-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
test
:
stage
:
test
script
:
-
pytest example.py
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