Skip to content

Commit

Permalink
chore: add tox to automated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aexvir committed Sep 16, 2020
1 parent d13c148 commit a92d1a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
image: ["black", "pre-commit"]
image: ["black", "pre-commit", "tox"]

steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 7 additions & 7 deletions tox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
FROM alpine:3

ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims"
ENV TOX_VERSION="3.19.0"
ENV version=3.20.0

RUN apk add --no-cache --virtual=.build-deps curl git linux-headers openssl-dev sqlite-dev readline-dev bzip2-dev ncurses-dev sqlite-dev patch xz-dev zlib-dev && \
apk add --no-cache --virtual=.run-deps bash build-base curl-dev openssl readline libffi libbz2 libffi-dev bzip2 ncurses sqlite sqlite-libs zlib xz postgresql-dev ca-certificates && \
curl --location https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
pyenv update && \
pyenv install 2.7.18 && \
pyenv install 3.5.9 && \
pyenv install 3.6.11 && \
pyenv install 3.7.8 && \
pyenv install 3.5.10 && \
pyenv install 3.6.12 && \
pyenv install 3.7.9 && \
pyenv install 3.8.5 && \
pyenv global 3.8.5 3.7.8 3.6.11 3.5.9 2.7.18 && \
pyenv global 3.8.5 3.7.9 3.6.12 3.5.10 2.7.18 && \
pyenv rehash && \
pip install tox==$TOX_VERSION && \
pip install tox==$version && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
find /root/.pyenv/versions -type d '(' -name '__pycache__' -o -name 'test' -o -name 'tests' ')' -exec rm -rfv '{}' + && \
find /root/.pyenv/versions -type f '(' -name '*.py[co]' -o -name '*.exe' ')' -exec rm -fv '{}' +

CMD ["tox"]
LABEL name=tox version=$TOX_VERSION \
LABEL name=tox version=$version \
maintainer="Alex Viscreanu [email protected]"

0 comments on commit a92d1a0

Please sign in to comment.