-
-
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.
- Loading branch information
Showing
1 changed file
with
105 additions
and
0 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,105 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ $default-branch ] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Py ${{ matrix.python }} / Django ${{ matrix.django }} | ||
strategy: | ||
matrix: | ||
python: [3.6, 3.7, 3.8] | ||
django: [2.2.16, 3.0.7, 3.1.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[files,huey,celery] | ||
pip uninstall django-spirit -y | ||
pip install --upgrade Django==${{ matrix.django }} | ||
- name: Run Tests | ||
run: | | ||
python setup.py -q build | ||
python ./spirit/extra/bin/spirit.py startproject project | ||
export PYTHONWARNINGS="default" | ||
make test | ||
build_js: | ||
runs-on: ubuntu-latest | ||
name: JS | ||
strategy: | ||
matrix: | ||
node: [12.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set Up NodeJS ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install Dependencies | ||
run: | | ||
npm install -g yarn | ||
npm install -g jasmine@3.6.1 | ||
yarn | ||
- name: Run Tests | ||
run: | | ||
make testjs | ||
build_no_deps: | ||
runs-on: ubuntu-latest | ||
name: No-deps / Py ${{ matrix.python }} / Django ${{ matrix.django }} | ||
strategy: | ||
matrix: | ||
python: [3.8] | ||
django: [3.1.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
pip uninstall django-spirit -y | ||
pip install --upgrade Django==${{ matrix.django }} | ||
- name: Run Tests | ||
run: | | ||
python ./spirit/extra/bin/spirit.py startproject project | ||
export PYTHONWARNINGS="default" | ||
export ST_UPLOAD_FILE_ENABLED=0 | ||
export ST_INSTALL_HUEY=0 | ||
make test | ||
build_huey: | ||
runs-on: ubuntu-latest | ||
name: Huey / Py ${{ matrix.python }} / Django ${{ matrix.django }} | ||
strategy: | ||
matrix: | ||
python: [3.8] | ||
django: [3.1.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[huey] | ||
pip uninstall django-spirit -y | ||
pip install --upgrade Django==${{ matrix.django }} | ||
- name: Run Tests | ||
run: | | ||
python ./spirit/extra/bin/spirit.py startproject project | ||
export PYTHONWARNINGS="default" | ||
export ST_UPLOAD_FILE_ENABLED=0 | ||
export ST_TASK_MANAGER="huey" | ||
make test |