Fix CI workflows
This commit is contained in:
parent
bf7b9d2af5
commit
ffd19423e5
|
@ -1,6 +1,6 @@
|
|||
name: Format check
|
||||
|
||||
on: ["push", "pull_request"]
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
format-check:
|
||||
|
@ -16,6 +16,9 @@ jobs:
|
|||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements_test.txt
|
||||
|
||||
- name: Run Black
|
||||
run: |
|
||||
black --version
|
||||
|
|
|
@ -1,28 +1,29 @@
|
|||
name: Run Test Suite
|
||||
|
||||
on: ["push", "pull_request"]
|
||||
on: "push"
|
||||
|
||||
jobs:
|
||||
name: Run Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python_version: [3.6, 3.7, 3.8]
|
||||
django_version: ["django-22", "django-30"]
|
||||
run-test-suite:
|
||||
name: Run Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python_version: [3.6, 3.7, 3.8]
|
||||
django_version: ["django-22", "django-30"]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python ${{ matrix.python_version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python_version }}
|
||||
- name: Set up Python ${{ matrix.python_version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python_version }}
|
||||
|
||||
- name: Run Tests
|
||||
run: tox -e py${{ matrix.python_version }}-${{ matrix.django_version }}
|
||||
- name: Run Tests
|
||||
run: tox -e py${{ matrix.python_version }}-${{ matrix.django_version }}
|
||||
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue