diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a1b25eb9b0bfb7fcba46e5c9dea2d70cc36b4158 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CI +on: + push: + branches: + - master + pull_request: + paths-ignore: + - 'doc/*.rst' + schedule: + - cron: '17 3 * * 0' + +jobs: + flake8: + name: Flake8 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: "Main Script" + run: | + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh + . ./prepare-and-run-flake8.sh pymbolic test + + pylint: + name: Pylint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: "Main Script" + run: | + EXTRA_INSTALL="numpy sympy symengine scipy pexpect" + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh + . ./prepare-and-run-pylint.sh pymbolic test/test_*.py + + pytest: + name: Pytest on Py${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.6, 3.7, 3.8, pypy2, pypy3] + steps: + - uses: actions/checkout@v2 + - + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: "Main Script" + run: | + EXTRA_INSTALL="numpy sympy symengine pexpect" + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh + . ./build-and-test-py-project.sh + +# vim: sw=4 diff --git a/README.rst b/README.rst index e7724d8deb7c0a9db8e3022d2768a6c307e394d8..3b174cf3c9eee1d13c127a2c940e9986b2f21cb6 100644 --- a/README.rst +++ b/README.rst @@ -4,9 +4,9 @@ Pymbolic: Easy Expression Trees and Term Rewriting .. image:: https://gitlab.tiker.net/inducer/pymbolic/badges/master/pipeline.svg :alt: Gitlab Build Status :target: https://gitlab.tiker.net/inducer/pymbolic/commits/master -.. image:: https://dev.azure.com/ak-spam/inducer/_apis/build/status/inducer.pymbolic?branchName=master - :alt: Azure Build Status - :target: https://dev.azure.com/ak-spam/inducer/_build/latest?definitionId=3&branchName=master +.. image:: https://github.com/inducer/pymbolic/workflows/CI/badge.svg?branch=master + :alt: Github Build Status + :target: https://github.com/inducer/pymbolic/actions?query=branch%3Amaster+workflow%3ACI .. image:: https://badge.fury.io/py/pymbolic.png :alt: Python Package Index Release Page :target: https://pypi.org/project/pymbolic/