-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch tests from Travis to GitHub Actions
- Loading branch information
Nemanja Martinovic
committed
May 4, 2021
1 parent
aa9de31
commit 8676563
Showing
3 changed files
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |