Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tfields
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
Model registry
Operate
Environments
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
Daniel Boeckenhoff
tfields
Commits
2781d994
Commit
2781d994
authored
3 years ago
by
dboe
Browse files
Options
Downloads
Patches
Plain Diff
explicit pytest path to .tox dir solves the issue
parent
01a5f2be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#117376
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-2
0 additions, 2 deletions
.gitlab-ci.yml
setup.cfg
+9
-3
9 additions, 3 deletions
setup.cfg
with
9 additions
and
5 deletions
.gitlab-ci.yml
+
0
−
2
View file @
2781d994
...
@@ -36,8 +36,6 @@ dist:
...
@@ -36,8 +36,6 @@ dist:
-
python setup.py bdist_wheel
-
python setup.py bdist_wheel
# an alternative approach is to install and run:
# an alternative approach is to install and run:
-
pip install dist/*
-
pip install dist/*
# remove build directory in order to prevent ImportPathMismatchError
-
rm -rf build
artifacts
:
artifacts
:
paths
:
paths
:
-
dist/*.whl
-
dist/*.whl
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
9
−
3
View file @
2781d994
...
@@ -125,21 +125,26 @@ build-dir = docs/_build
...
@@ -125,21 +125,26 @@ build-dir = docs/_build
source-dir
=
docs
source-dir
=
docs
[tool:pytest]
[tool:pytest]
addopts
=
--doctest-modules
addopts
=
--doctest-modules
junit_family
=
xunit2
junit_family
=
xunit2
[tox:tox]
[tox:tox]
minversion
=
3.7
minversion
=
3.7
skip_missing_interpreters
=
true
skip_missing_interpreters
=
true
envlist
=
envlist
=
py{3
8,39
}
py{3
5,36,37,38,39,310
}
recreate
=
true
recreate
=
true
usedevelop
=
true
usedevelop
=
true
[gh-actions]
[gh-actions]
python
=
python
=
3.5: py35
3.6:
py36
3.7:
py37
3.8:
py38
3.8:
py38
3.9:
py39
3.9:
py39
3.10:
py310
[testenv]
[testenv]
description
=
run test suite under {basepython}
description
=
run test suite under {basepython}
...
@@ -152,7 +157,8 @@ commands_pre =
...
@@ -152,7 +157,8 @@ commands_pre =
rm -rf **/__pycache__
rm -rf **/__pycache__
rm
-rf
**/*.pyc
rm
-rf
**/*.pyc
commands
=
commands
=
pytest
\
pytest {envsitepackagesdir}/tfields
\
# prevent ImportPathMismatchError https://tox.wiki/en/latest/example/pytest.html
--basetemp="{envtmpdir}" {posargs}
--cov
=
{[metadata]name}
\
--cov
=
{[metadata]name}
\
--ignore=docs
\
--ignore=docs
\
--junitxml=report/junit.xml
--junitxml=report/junit.xml
...
...
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