Skip to content

Commit

Permalink
GitHub actions (#19)
Browse files Browse the repository at this point in the history
* Conf coveralls
  • Loading branch information
barseghyanartur committed Jun 22, 2021
1 parent 3ae9f63 commit c1f211d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 23 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ omit =
example/example/settings/*
example/example/wsgi.py
.tox/*
relative_files = True

[report]
exclude_lines =
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GITHUB_TOKEN
COVERALLS_REPO_TOKEN
39 changes: 17 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,21 @@ jobs:
pip install -r examples/requirements/test.txt
- name: Run Tests
run: tox -e ${{ matrix.tox_env }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Run Tests

# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
# run: |
# sudo apt-get install git -y
# pip install coveralls
# coveralls -v --service=github-actions

# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.COVERALLS_GITHUB_TOKEN }}
# parallel-finished: true
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
debug: True
3 changes: 2 additions & 1 deletion scripts/make_release.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
python setup.py register
python setup.py sdist bdist_wheel upload
python setup.py sdist bdist_wheel
twine upload dist/* --verbose

0 comments on commit c1f211d

Please sign in to comment.