Skip to content

Commit

Permalink
Merge pull request #156 from deanishe/ci/github-actions
Browse files Browse the repository at this point in the history
Add GitHub Action for tests & coverage
  • Loading branch information
deanishe committed May 20, 2020
2 parents 0659f0b + 5011d74 commit a2ccc2b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 28 deletions.
45 changes: 45 additions & 0 deletions .github/run-tests.yml
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: "Unit Tests & Coverage"

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
run:
runs-on: macos-latest
strategy:
matrix:
python-version: [2.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
pip install -r requirements-ci.txt
- name: Lint
run: ./run-tests.sh -l

- name: Unit tests
run: ./run-tests.sh

- name: Codacy
run: python-codacy-coverage -r coverage.xml

- name: Coveralls
run: coveralls

- name: Codecov
run: bash <(curl -s https://codecov.io/bash)
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -17,7 +17,8 @@ install:
- git clone https://github.com/MacPython/terryfy
- source terryfy/travis_tools.sh
- get_python_environment $SOURCE $VERSION venv
- bin/travis-install-deps.sh
- pip install -r requirements-test.txt
- pip install -r requirements-ci.txt

script:
- ./run-tests.sh
Expand Down
27 changes: 0 additions & 27 deletions bin/travis-install-deps.sh

This file was deleted.

3 changes: 3 additions & 0 deletions requirements-ci.txt
@@ -0,0 +1,3 @@
codacy-coverage==1.3.11
coveralls==1.11.1
pyobjc-framework-Cocoa==5.2

0 comments on commit a2ccc2b

Please sign in to comment.