Skip to content

Commit

Permalink
test each python version with one nsqd version
Browse files Browse the repository at this point in the history
  • Loading branch information
ploxiln committed Apr 25, 2020
1 parent 367685c commit 67c5936
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,31 @@ jobs:
matrix:
imgtag:
- "python:2.7-buster"
- "python:3.4-jessie"
- "python:3.5-buster"
- "python:3.6-buster"
- "python:3.7-buster"
- "python:3.8-buster"
tornado_ver:
- "4.5.3"
- "5.1.1"
nsq_dl:
- "nsq-1.0.0-compat.linux-amd64.go1.8"
- "nsq-1.1.0.linux-amd64.go1.10.3"
- "nsq-1.2.0.linux-amd64.go1.12.9"

container: "${{matrix.imgtag}}"
steps:
- uses: actions/checkout@v2
- name: Download NSQ
run: |
wget "http://bitly-downloads.s3.amazonaws.com/nsq/${{matrix.nsq_dl}}.tar.gz"
tar zxvf "${{matrix.nsq_dl}}.tar.gz"
./${{matrix.nsq_dl}}/bin/nsqd --version
PY_VER="$(python -c 'import sys; print(sys.version_info[:2])')"
case "$PY_VER" in
'(3, 4)' | '(3, 7)' ) NSQ_DIST="nsq-1.0.0-compat.linux-amd64.go1.8" ;;
'(2, 7)' | '(3, 6)' ) NSQ_DIST="nsq-1.1.0.linux-amd64.go1.10.3" ;;
'(3, 5)' | '(3, 8)' ) NSQ_DIST="nsq-1.2.0.linux-amd64.go1.12.9" ;;
esac
echo "PY_VER=$PY_VER"
echo "NSQ_DIST=$NSQ_DIST"
curl -sSL "http://bitly-downloads.s3.amazonaws.com/nsq/${NSQ_DIST}.tar.gz" \
| tar -xzv --strip-components=1
./bin/nsqd --version
- name: Install System Dependencies
run: |
apt-get -q -y update
Expand All @@ -45,5 +52,5 @@ jobs:
flake8 --show-source
- name: Test
run: |
export PATH=${{matrix.nsq_dl}}/bin:$PATH
export PATH=bin:$PATH
pytest -v

0 comments on commit 67c5936

Please sign in to comment.