CI: remove non-ASCII chars from tox.ini #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- python-version: 2.7 | |
env: | |
TOXENV: py27-pinned | |
- python-version: 2.7 | |
env: | |
TOXENV: py27 | |
- python-version: 2.7 | |
env: | |
TOXENV: py27-extra-deps | |
- python-version: 2.7 | |
env: | |
TOXENV: pypy2 | |
PYPY_VERSION: '2.7-v7.3.5' | |
- python-version: 3.5 | |
env: | |
TOXENV: py35-pinned | |
- python-version: 3.5 | |
env: | |
TOXENV: py35 | |
- python-version: 3.6 | |
env: | |
TOXENV: py36 | |
- python-version: 3.7 | |
env: | |
TOXENV: py37 | |
- python-version: 3.8 | |
env: | |
TOXENV: py38 | |
- python-version: 3.8 | |
env: | |
TOXENV: py38-extra-deps | |
# See tox.ini for details | |
# - python-version: pypy3 | |
# env: | |
# TOXENV: pypy3 | |
# PYPY_VERSION: '3.7-v7.3.5' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
# https://github.com/actions/setup-python/issues/672#issuecomment-1894254135 | |
uses: LizardByte/setup-python-action@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system libraries | |
if: matrix.python-version == 'pypy3' || contains(matrix.env.TOXENV, 'pinned') | |
run: | | |
sudo apt-get update | |
sudo apt-get install libxml2-dev libxslt-dev python2-dev | |
- name: Run tests | |
env: ${{ matrix.env }} | |
run: | | |
if [[ ! -z "$PYPY_VERSION" ]]; then | |
export PYPY_VERSION="pypy$PYPY_VERSION-linux64" | |
wget "https://downloads.python.org/pypy/${PYPY_VERSION}.tar.bz2" | |
tar -jxf ${PYPY_VERSION}.tar.bz2 | |
if [ "${PYPY_VERSION:4:1}" = "2" ]; then | |
pip install -U virtualenv | |
virtualenv --python="$PYPY_VERSION/bin/pypy" "$HOME/virtualenvs/$PYPY_VERSION" | |
else | |
$PYPY_VERSION/bin/pypy3 -m venv "$HOME/virtualenvs/$PYPY_VERSION" | |
fi | |
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate" | |
fi | |
pip install -U tox | |
tox | |
- name: Upload coverage report | |
run: bash <(curl -s https://codecov.io/bash) |