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

Tox support #59

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Development

## Workflow

### First Time

```
$ git clone [email protected]:kieren-mackle/AutoTrader.git
$ cd AutoTrader
$ mkvirtualenv autotrader
$ workon autotrader
$ tox
```

### Regular

Build automation is achieved via Tox and is configured to mirror the CI/CD pipeline as closely as reasonably possible:

```
$ tox
```

17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = [py38, py39, py310]

[testenv]
# install pytest in the virtualenv where commands will be executed
deps=
pytest
pytest-cov
black
-rrequirements.txt

commands =
pytest --cov=autotrader --cov-report=xml tests
black autotrader tests
passenv = *