From 256f22add2e00d2c6ed8dd19ea26524ab2e9bb12 Mon Sep 17 00:00:00 2001
From: "[6~" <inform@tiker.net>
Date: Mon, 16 Mar 2020 17:05:16 -0500
Subject: [PATCH] Add prototype Github CI workflow

---
 .github/workflows/ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++
 README.rst               |  6 ++---
 2 files changed, 56 insertions(+), 3 deletions(-)
 create mode 100644 .github/workflows/ci.yml

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..245054db
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,53 @@
+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 ./meshmode ./test
+
+    pytest2:
+        name: Pytest Conda Py2
+        runs-on: ubuntu-latest
+        steps:
+        -   uses: actions/checkout@v2
+        -   name: "Main Script"
+            run: |
+                sed 's/python=3/python=2.7/' .test-conda-env-py3.yml > .test-conda-env-py2.yml
+                cat .test-conda-env-py2.yml
+                CONDA_ENVIRONMENT=.test-conda-env-py2.yml
+                curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh
+                . ./build-and-test-py-project-within-miniconda.sh
+
+    pytest3:
+        name: Pytest Conda Py3
+        runs-on: ubuntu-latest
+        steps:
+        -   uses: actions/checkout@v2
+        -   name: "Main Script"
+            run: |
+                CONDA_ENVIRONMENT=.test-conda-env-py3.yml
+                sudo apt install gfortran-7
+                sudo ln -s /usr/bin/gfortran-7 /usr/bin/gfortran
+                curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh
+                . ./build-and-test-py-project-within-miniconda.sh
+
+# vim: sw=4
diff --git a/README.rst b/README.rst
index b012a218..a6d3337f 100644
--- a/README.rst
+++ b/README.rst
@@ -4,9 +4,9 @@ meshmode: High-Order Meshes and Discontinuous Function Spaces
 .. image:: https://gitlab.tiker.net/inducer/meshmode/badges/master/pipeline.svg
     :alt: Gitlab Build Status
     :target: https://gitlab.tiker.net/inducer/meshmode/commits/master
-.. image:: https://dev.azure.com/ak-spam/inducer/_apis/build/status/inducer.meshmode?branchName=master
-    :alt: Azure Build Status
-    :target: https://dev.azure.com/ak-spam/inducer/_build/latest?definitionId=14&branchName=master
+.. image:: https://github.com/inducer/meshmode/workflows/CI/badge.svg?branch=master
+    :alt: Github Build Status
+    :target: https://github.com/inducer/meshmode/actions?query=branch%3Amaster+workflow%3ACI
 .. image:: https://badge.fury.io/py/meshmode.png
     :alt: Python Package Index Release Page
     :target: https://pypi.org/project/meshmode/
-- 
GitLab