summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorUlysses Souza <ulyssessouza@gmail.com>2020-12-14 14:06:23 -0300
committerUlysses Souza <ulysses.souza@docker.com>2020-12-18 14:39:40 +0000
commitd8bbbf23517007083a4e9f66e6e3028061c0e5ed (patch)
tree2730d1d6d80f55fc0c38d5e85ff4dc29793155d8 /.github
parent1757c974fa3a05b0e9b783af85242b18df09d05d (diff)
downloaddocker-py-d8bbbf23517007083a4e9f66e6e3028061c0e5ed.tar.gz
Add Github Actions
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..9fb9a45
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: Python package
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 1
+ matrix:
+ python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install tox tox-gh-actions==2.2.0
+ - name: Test with tox
+ run: |
+ docker logout
+ rm -rf ~/.docker
+ tox