Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
5868fe17
Commit
5868fe17
authored
1 year ago
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Change docker image to python:latest
parent
36fcdaf1
Branches
Branches containing commit
No related merge requests found
Pipeline
#16326
failed with stages
Stage:
Stage:
in 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+29
-12
29 additions, 12 deletions
.gitlab-ci.yml
tox.ini
+1
-2
1 addition, 2 deletions
tox.ini
with
30 additions
and
14 deletions
.gitlab-ci.yml
+
29
−
12
View file @
5868fe17
image
:
clarinpl/python:3.8
image
:
python:latest
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
cache
:
paths
:
paths
:
-
.tox
-
.tox
-
.cache/pip
stages
:
stages
:
-
test
-
test
-
publish
-
publish
before_script
:
before_script
:
-
apt-get update -yqq
-
python --version ; pip --version
# For debugging
&& apt-get install -yqq --no-install-recommends
-
pip install virtualenv
make
-
virtualenv venv
g++
-
source venv/bin/activate
&& apt-get autoremove -yqq --purge
&& apt-get clean
test
:
unittests
:
stage
:
test
script
:
script
:
-
pip install tox==4.12
-
pip install tox
# you can also use tox
-
tox -p -e python3.8
-
pip install --editable ".[test]"
-
tox -e py
#before_script:
# - apt-get update -yqq
# && apt-get install -yqq --no-install-recommends
# make
# g++
# && apt-get autoremove -yqq --purge
# && apt-get clean
#
#unittests:
# stage: test
# script:
# - pip install tox==4.12
# - tox -p -e python3.9
pypi_publish
:
pypi_publish
:
before_script
:
before_script
:
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
2
View file @
5868fe17
[tox]
[tox]
envlist
=
python3.8
envlist
=
py
skipsdist
=
True
[testenv]
[testenv]
deps
=
pytest
deps
=
pytest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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