Skip to content

Commit

Permalink
Merge pull request #79 from pypr/use-gh-actions
Browse files Browse the repository at this point in the history
Use gh-actions for CI.
  • Loading branch information
prabhuramachandran committed Jul 13, 2021
2 parents 6b3a512 + 2d473ac commit 6492509
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 71 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on: pull_request

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9]

runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install dependencies on Linux/MacOS
run: |
conda info
conda install -c conda-forge pocl pyopencl
python -c 'import pyopencl as cl'
if: ${{ runner.os != 'Windows' }}
- name: Install dependencies
run: |
conda info
conda install -c conda-forge numpy cython
python -m pip install -r requirements.txt
python -m pip install coverage codecov
python -m pip install -e ".[dev]"
- name: Run tests
run: |
coverage erase
coverage run -m pytest -v
- name: Report
if: ${{ success() }}
run: coverage report
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
env_vars: ${{ matrix.os }}, ${{ matrix.python-version }}
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
Compyle: execute a subset of Python on HPC platforms
======================================================

|Travis Status| |Appveyor Status| |Coverage Status| |Documentation Status|
|CI Status| |Coverage Status| |Documentation Status|


.. |Travis Status| image:: https://travis-ci.org/pypr/compyle.svg?branch=master
:target: https://travis-ci.org/pypr/compyle
.. |Appveyor Status| image:: https://ci.appveyor.com/api/projects/status/isg727d5ofn69rrm?svg=true
:target: https://ci.appveyor.com/project/prabhuramachandran/compyle
.. |CI Status| image:: https://github.com/pypr/compyle/actions/workflows/tests.yml/badge.svg
:target: https://github.com/pypr/compyle/actions/workflows/tests.yml
.. |Documentation Status| image:: https://readthedocs.org/projects/compyle/badge/?version=latest
:target: https://compyle.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Expand Down
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

0 comments on commit 6492509

Please sign in to comment.