Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
BinarSkugga committed Oct 10, 2023
1 parent 03794e4 commit 7ecd441
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
15 changes: 1 addition & 14 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import nox
from nox import Session

IN_CI = 'GITLAB_CI' in os.environ
PARALLEL = os.environ.get('TEST_PARALLEL', 'false') == 'true'
# Only reuse virtualenvs in local testing
nox.options.reuse_existing_virtualenvs = not IN_CI
environment = {**os.environ}


Expand All @@ -31,14 +28,4 @@ def tests(session: Session):

session.run(sys.executable, "-m", "pip", "install", "-U", "pip")
session.run(sys.executable, 'setup.py', 'install', env={**environment, 'PYTHONPATH': os.pathsep.join(sys.path)})

if PARALLEL:
session.install('pytest-xdist')
num_proc = os.environ.get('TEST_NUM_PROCESSES', '8')
num_proc = int(num_proc) if num_proc != 'auto' else 'auto'
session.run('pytest', '--cov-config=.coveragerc', '--dist=loadfile', f'--numprocesses={num_proc}',
'--tx', 'popen//python=python', '--cov=src', '--junitxml=tests/report.xml', 'tests',
env={**environment, 'PYTHONPATH': os.pathsep.join(sys.path)})
else:
session.run('pytest', 'tests', env={**environment, 'PYTHONPATH': os.pathsep.join(sys.path)})

session.run('pytest', 'tests', env={**environment, 'PYTHONPATH': os.pathsep.join(sys.path)})
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ def raw_install(*packages):
# test_requirements = configs['options']['install_test_requires'].split('\n')[1:]

if len(sys.argv) == 2 and sys.argv[1] == 'install':
personal_access_token = os.environ['GITLAB_TOKEN']
if len(personal_access_token) == 0:
personal_access_token = input('Please provide your personal access token: ')

raw_install(*requirements)
# gitlab_install(personal_access_token, *test_requirements)
else:
Expand Down

0 comments on commit 7ecd441

Please sign in to comment.