-
-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add github CI to replace travis CI (#1051)
- Loading branch information
1 parent
89403af
commit aa75456
Showing
3 changed files
with
102 additions
and
64 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,93 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
|
||
jobs: | ||
run_unittest_tests: | ||
name: Unittest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"] | ||
django-version: ["2.2", "3.0", "3.1", "3.2"] | ||
exclude: | ||
- python-version: "3.5" | ||
django-version: "3.0" | ||
- python-version: "3.5" | ||
django-version: "3.1" | ||
- python-version: "3.5" | ||
django-version: "3.2" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install --upgrade setuptools | ||
pip install tox | ||
- name: Run unittest Python ${{ matrix.python-version }} -- Django ${{ matrix.django-version }} | ||
env: | ||
TOXENV: py${{ matrix.python-version }}-django${{ matrix.django-version }} | ||
run: tox | ||
|
||
run_integration_tests: | ||
name: Integration tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ["3.5"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install --upgrade setuptools | ||
pip install tox | ||
- name: Integration tests | ||
env: | ||
TOXENV: integration | ||
run: tox | ||
|
||
run_quality_tests: | ||
name: Quality tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ["3.6"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install tox | ||
- name: Quality tests | ||
env: | ||
TOXENV: flake8 | ||
run: | | ||
tox |
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