Skip to content

Commit

Permalink
Updated CircleCI config to run tox. Fixed fomratting in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
madpah committed Aug 31, 2021
1 parent 822ab8b commit 9a56230
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
version: 2.1

executors:
python:
python39:
docker:
- image: circleci/python:3.7
- image: circleci/python:3.9

jobs:
publish:
executor: python
executor: python39
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
Expand All @@ -39,28 +39,26 @@ jobs:
# TODO: perform publish steps, maybe using python-semantic-release
build:
executor: python
executor: python39
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
- checkout
- run:
name: Setup Python environment
name: Install Tox
command: |
# TODO: do stuff, like setup .venv, poetry, pip etc.
pip install tox
- run:
name: Run tests
name: Run tox
command: |
# TODO: maybe run pylint and run those tests
tox --result-json=.tox/results.json
- run:
name: Run self scan
command: |
# TODO: audit with jake maybe?
- store_test_results: # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
path: test-results
- store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: test-results
destination: tr1
path: .tox/results.json
destination: tox-logs

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_output_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def test_get_instance_xml(self):

def test_get_instance_xml_v1_3(self):
i = get_instance(output_format=OutputFormat.XML, schema_version=SchemaVersion.V1_3)
self.assertIsInstance(i, XmlV1Dot3)
self.assertIsInstance(i, XmlV1Dot3)

0 comments on commit 9a56230

Please sign in to comment.