Skip to content

Commit

Permalink
Run pytest as a separate job to avoid scripts from getting overwr…
Browse files Browse the repository at this point in the history
…itten (#776)

* Include pytest as a separate test case to avoid scripts from getting overwritten

* Remove python: 3.8 since it's already globally specified
  • Loading branch information
alex-l-kong committed Oct 18, 2022
1 parent c885afd commit 1586512
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ env:

cache: pip

# command to run tests
script:
- python -m pip install --editable .
- python -m pytest --cov=ark --pycodestyle ark

jobs:
include:
- stage: pytest_run
script:
- python -m pip install --editable .
- python -m pytest --cov=ark --pycodestyle ark
- stage: test_pypi_deploy
python: 3.8
script:
- "travis_wait 120 sleep 7200 &"
- python setup.py bdist_wheel
Expand All @@ -40,7 +38,6 @@ jobs:
- twine upload -r testpypi --skip-existing /home/travis/build/"$TRAVIS_REPO_SLUG"/wheelhouse/*.whl -u "$TEST_PYPI_USERNAME" -p "$TEST_PYPI_PASSWORD"
- stage: pypi_deploy
if: tag IS present
python: 3.8
script:
- "travis_wait 120 sleep 7200 &"
- python setup.py bdist_wheel
Expand All @@ -50,7 +47,6 @@ jobs:
- twine upload --skip-existing /home/travis/build/"$TRAVIS_REPO_SLUG"/wheelhouse/*.whl -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD"
- stage: docker_deploy
if: tag IS present
python: 3.8
script:
- "travis_wait 120 sleep 7200 &"
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Expand Down

0 comments on commit 1586512

Please sign in to comment.