Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof of concept of tox integration #282

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lunkwill42
Copy link
Collaborator

This sets up a default config for tox, with an environment list for Python versions 3.7 through 3.9, and moves the pytest config into tox.ini while we're at it.

I can now run the test suite (minus equipment tests, in my case) on three versions of Python by just running this:

tox -- -m 'not equipment'

If I want to run on just Python 3.7, like before, I do

tox -e py37 -- -m 'not equipment'

This sets up a default environment list for Python version 3.7, through
3.9 and moves the pytest config into tox.ini while we're at it.
@lunkwill42 lunkwill42 marked this pull request as draft January 12, 2023 12:43
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Base: 64.66% // Head: 64.66% // No change to project coverage 👍

Coverage data is based on head (ed933b7) compared to base (f8f7789).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #282   +/-   ##
========================================
  Coverage    64.66%   64.66%           
========================================
  Files           65       65           
  Lines         6800     6800           
========================================
  Hits          4397     4397           
  Misses        2403     2403           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@indy-independence
Copy link
Member

Looks like a good start

@indy-independence
Copy link
Member

I needed to do this to get it working with my pyenv setup:

python3 -m pip install "tox<4" tox-pyenv
pyenv shims
tox -e py37 -- -m 'not equipment'

@sonarcloud
Copy link

sonarcloud bot commented May 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants