Skip to content

Commit

Permalink
Remove Travis CI (#32)
Browse files Browse the repository at this point in the history
* Remove travis and port to github actions

Removes travis-ci and ports all workflows to github actions, so code coverage is now merged with testing.

* Change workflow name to build

* Update status badge on `README.md`
  • Loading branch information
Quantalabs committed Jul 29, 2021
1 parent c0e7aad commit 991f90c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 49 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/coverage.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on: [push, pull_request]
jobs:
test:
name: "Test on Python ${{ matrix.python_version }}"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install pytest
pip install coverage
pip install codecov
pip install -r requirements.txt
- name: Test
run: |
coverage run -m pytest
- name: Generate Coverage Report
run: |
python -m coverage report
python -m coverage xml
- name: Upload to codecov
run: |
codecov
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![DiffPriv Logo](https://docs.google.com/drawings/d/e/2PACX-1vQ8A92uJpy4g09GFYxayNQXOvtl0wmXXkYFiteDFSaXVcfdbcm835wc_IjjlKHlM94rjdsM7H1Szzjq/pub?w=600)

[![Build Status](https://www.travis-ci.com/Quantalabs/DiffPriv.svg?branch=master)](https://www.travis-ci.com/Quantalabs/DiffPriv)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Quantalabs/DiffPriv/Build?style=flat-square)](https://github.com/actions/workflows/test.yml)
[![PyPI Version](https://shields.mitmproxy.org/pypi/v/DIffPriv.svg)](https://pypi.org/project/DiffPriv)
[![DeepSource](https://deepsource.io/gh/Quantalabs/DiffPriv.svg/?label=active+issues&show_trend=true)](https://deepsource.io/gh/Quantalabs/DiffPriv/?ref=repository-badge)
[![codecov](https://codecov.io/gh/Quantalabs/DiffPriv/branch/master/graph/badge.svg?token=wCz4qTJxEO)](https://codecov.io/gh/Quantalabs/DiffPriv)
Expand Down

0 comments on commit 991f90c

Please sign in to comment.