Skip to content

Commit

Permalink
Switch tests from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja Martinovic committed May 4, 2021
1 parent aa9de31 commit 8676563
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 20 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Python CI actions

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 2.7

- name: Install dependencies
run: |
python -m pip install --upgrade wheel setuptools pip
pip install -U -r requirements.txt
pip install -U -r dev-requirements.txt
- name: Test with pytest
run: |
py.test
- uses: actions/upload-artifact@v2
with:
name: coverage-solrservice
path: .coverage


coveralls:

needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade wheel setuptools pip
pip install coverage==5.2.1
pip install coveralls==2.2.0
- uses: actions/download-artifact@master
with:
name: coverage-solrservice

- name: Coveralls
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
flask-cors==2.0.0
flask-testing==0.6.2
httpretty==0.8.10
coveralls==1.1
pep257==0.5.0
pytest==2.8.2
pytest-cache==1.0
pytest-cov==2.2.0
pytest-pep8==1.0.6
mock==2.0.0
coverage==5.2.1

0 comments on commit 8676563

Please sign in to comment.