-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* port to github actions * remove travis * cover the 3.2 branch for now too
- Loading branch information
1 parent
771ce8a
commit 54c147f
Showing
4 changed files
with
50 additions
and
22 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,47 @@ | ||
name: Actions CI | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
- release-3-2-0 | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
- 3.7 | ||
task: | ||
- name: Lint | ||
command: | | ||
./tests/scripts/pylint.sh | ||
- name: Test | ||
command: | | ||
./tests/scripts/unit_tests.sh | ||
./manage.py test rules | ||
./manage.py test classifier | ||
- name: Docs | ||
command: | | ||
sphinx-build -W docs/source docs/build | ||
- name: Bandit | ||
command: | | ||
bandit --ini setup.cfg -r . | ||
name: "Python ${{ matrix.python }}/${{ matrix.task.name }}" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- uses: "actions/setup-python@v1" | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install requirements | ||
run: pip install -r requirements.txt | ||
- name: ${{ matrix.task.name }} | ||
run: ${{ matrix.task.command }} | ||
- name: Submit Coverage | ||
run: coveralls | ||
if: matrix.task.name == 'Test' | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_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
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