diff --git a/.github/ci.yaml b/.github/ci.yaml new file mode 100644 index 0000000..f55bd3b --- /dev/null +++ b/.github/ci.yaml @@ -0,0 +1,23 @@ +name: CI +on: [pull_request, push] +jobs: + #################### Unittests #################### + unittest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7,3.8,3.9] + steps: + - name: Install system packages + run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev + - name: Check out code from GitHub + uses: actions/checkout@v2.3.5 + - name: Set up Python ${{ matrix.python-version }} + id: python + uses: actions/setup-python@main + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: pip install --upgrade pip setuptools wheel tox tox-docker + - name: Run unittest + run: tox -v -e ${{ matrix.python-version }}-linux-unit -- -v diff --git a/tox.ini b/tox.ini index d7c612e..7265145 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py3{5,6,7,8,9}, pypy{,3} +envlist = 3.7,3.8,3.9-linux-unit skip_missing_interpreters = True [testenv]