From 14a0d99f985dbe215c6b5e924def6b5f31cfaa46 Mon Sep 17 00:00:00 2001 From: mustafa <54793885+mustafa-travisci@users.noreply.github.com> Date: Tue, 15 Mar 2022 11:40:14 +0300 Subject: [PATCH 1/2] Update .travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 61fe554..8bb723e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - 3.9.5 # Fails with latest Python 3.9 see https://github.com/ltonetwork/lto-api.python/issues/65 + - 3.9.7 # Fails with latest Python 3.9 see https://github.com/ltonetwork/lto-api.python/issues/65 - 3.8 branches: @@ -12,6 +12,7 @@ before_install: - git config --local user.name "LTO Network" - git config --local user.email "info@ltonetwork.com" install: + - source ~/virtualenv/python3.9/bin/activate - pip3 install . before_script: - pip3 install pytest From 26ad0cbaef2ff136098e8dc1db281981ef9e361f Mon Sep 17 00:00:00 2001 From: mustafa <54793885+mustafa-travisci@users.noreply.github.com> Date: Tue, 15 Mar 2022 12:27:43 +0300 Subject: [PATCH 2/2] Update .travis.yml Workaround for the venv changes on the build. --- .travis.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8bb723e..2d8cbcc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ +--- language: python -python: - - 3.9.7 # Fails with latest Python 3.9 see https://github.com/ltonetwork/lto-api.python/issues/65 - - 3.8 branches: only: @@ -11,11 +9,10 @@ branches: before_install: - git config --local user.name "LTO Network" - git config --local user.email "info@ltonetwork.com" -install: - - source ~/virtualenv/python3.9/bin/activate - - pip3 install . + before_script: - pip3 install pytest + script: - pytest @@ -25,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