From cddb7ddba7f3e81cf5c1dfec72fe06ac76d1eed2 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Wed, 6 Jan 2021 09:44:02 -0800 Subject: [PATCH] Try to migrate to Gh-action. As we are out of time on .travis-ci for the zarr org. --- .github/workflows/ci-linux.yaml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci-linux.yaml diff --git a/.github/workflows/ci-linux.yaml b/.github/workflows/ci-linux.yaml new file mode 100644 index 00000000..dca4f9b1 --- /dev/null +++ b/.github/workflows/ci-linux.yaml @@ -0,0 +1,41 @@ +name: Linux CI + +on: [push, pull_request] + +jobs: + build: + runs-on: linux + strategy: + fail-fast: false + matrix: + python-version: ["3.5", "3.6", "3.7", "3.8"] + + steps: + - name: Checkout source + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install numcodecs + run: | + python -m pip install -U pip setuptools wheel pytest tox -rrequirements_dev.txt -rrequirements_rtfd.txt + python -m pip install -v -e . + + - name: List installed packages + run: python -m pip list + + - name: Run tests + run: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs + + - name: Flake8 + run: flake8 numcodecs + + - name: Build Doc: + run: | + cd docs + sphinx-build -W -b html