From d77c2cf6b04c4c2a7fa0532d36638eec8f109731 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Thu, 19 Sep 2019 20:06:32 -0700 Subject: Setup GH actions This sets up Github Actions to be used. Right now alongside Appveyor and Travis, but I am thinking this will eventually take over. --- .github/workflows/ci-linux.yml | 57 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/ci-windows.yml | 27 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .github/workflows/ci-linux.yml create mode 100644 .github/workflows/ci-windows.yml (limited to '.github/workflows') diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..f2bed7b --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,57 @@ +name: Build/test on Linux +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + tox: [ + {'py': '2.7', 'env': 'py27'}, + {'py': '3.5', 'env': 'py35'}, + {'py': '3.6', 'env': 'py36'}, + {'py': '3.7', 'env': 'py37'}, + {'py': 'pypy2', 'env': 'pypy'}, + {'py': 'pypy3', 'env': 'pypy3'} + ] + name: "Python: ${{ matrix.tox.py }}" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.tox.py }} + architecture: x64 + - run: pip install tox + - name: Running tox + run: tox -e ${{ matrix.tox.env }} + coverage: + runs-on: ubuntu-latest + name: Validate coverage for Python 2/3 + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 2.7 + architecture: x64 + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.5 + architecture: x64 + - run: pip install tox + - run: tox -e py35-cover,py27-cover,coverage + docs: + runs-on: ubuntu-latest + name: Build the documentation + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.5 + architecture: x64 + - run: pip install tox + - run: tox -e docs diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..f5395ab --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,27 @@ +name: Build/test on Windows +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + test: + runs-on: windows-2019 + strategy: + matrix: + tox: [ + {'py': '2.7', 'env': 'py27'}, + {'py': '3.5', 'env': 'py35'}, + {'py': '3.6', 'env': 'py36'}, + {'py': '3.7', 'env': 'py37'}, + ] + architecture: ['x86', 'x64'] + name: "Python: ${{ matrix.tox.py }} (${{ matrix.architecture }})" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.tox.py }} + architecture: ${{ matrix.architecture }} + - run: pip install tox + - name: Running tox + run: tox -e ${{ matrix.tox.env }} -- cgit v1.2.1