-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from clokep/github-actions
Setup GitHub actions.
- Loading branch information
Showing
2 changed files
with
44 additions
and
17 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,44 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
name: "Python ${{ matrix.python-version }}" | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
set -xe | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade tox | ||
- name: "Run tox targets for ${{ matrix.python-version }}" | ||
env: | ||
TOX_SKIP_ENV: ".*djangomaster.*" | ||
run: "python -m tox" | ||
|
||
- name: "Run tox targets for ${{ matrix.python-version }} for django master" | ||
env: | ||
TOX_SKIP_ENV: ".*django[^m].*" | ||
run: "python -m tox" | ||
continue-on-error: true |
This file was deleted.
Oops, something went wrong.