summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Falcão <gabriel@nacaolivre.org>2020-03-23 03:53:19 +0100
committerGabriel Falcão <gabriel@nacaolivre.org>2020-03-23 03:53:19 +0100
commitb2993fd3911d454dfbf7c3b3ba45c7b3dd601174 (patch)
treebdd82acf90c5435689d592174db963a67e633ed0
parentaafd6ba2954a7b158319131b711fa6dc74b38c33 (diff)
downloadhttpretty-b2993fd3911d454dfbf7c3b3ba45c7b3dd601174.tar.gz
add github workflow to use pyenv
-rw-r--r--.github/workflows/pyenv.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/pyenv.yml b/.github/workflows/pyenv.yml
new file mode 100644
index 0000000..61535eb
--- /dev/null
+++ b/.github/workflows/pyenv.yml
@@ -0,0 +1,43 @@
+name: Pyenv Build
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Pyenv with python 3.6.5 and 3.7.3
+ uses: gabrielfalcao/pyenv-action@v3
+ with:
+ default: 3.6.5,3.7.3
+
+
+ - name: Set python version to 3.6.5
+ run: pyenv local 3.6.5
+
+ - name: Unit Tests (python 3.6.5)
+ run: make unit
+
+ - name: PyOpenSSL tests (python 3.6.5)
+ run: make pyopenssl
+
+ - name: Functional Tests (python 3.6.5)
+ run: make functional
+
+ - name: Set python version to 3.7.3
+ run: pyenv local 3.7.3
+
+ - name: Unit Tests (python 3.7.3)
+ run: make unit
+
+ - name: PyOpenSSL tests (python 3.7.3)
+ run: make pyopenssl
+
+ - name: Functional Tests (python 3.7.3)
+ run: make functional