Skip to content

Commit

Permalink
Merge pull request #66 from mustafa-travisci/patch-1
Browse files Browse the repository at this point in the history
Update .travis.yml
  • Loading branch information
jasny authored Mar 16, 2022
2 parents 0493a46 + 26ad0cb commit a93679e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
language: python
python:
- 3.9.5 # Fails with latest Python 3.9 see https://github.com/ltonetwork/lto-api.python/issues/65
- 3.8

branches:
only:
Expand All @@ -11,10 +9,10 @@ branches:
before_install:
- git config --local user.name "LTO Network"
- git config --local user.email "[email protected]"
install:
- pip3 install .

before_script:
- pip3 install pytest

script:
- pytest

Expand All @@ -24,6 +22,19 @@ stages:

jobs:
include:
- stage: test
python:
- 3.8
install:
- pip3 install .

- stage: test
python:
- 3.9.7
install:
- source ~/virtualenv/python3.9/bin/activate
- pip3 install .

- name: "Publish GitHub release"
stage: deploy
if: branch = main AND type = push
Expand Down

0 comments on commit a93679e

Please sign in to comment.