Skip to content

Commit

Permalink
try github actions (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Sep 30, 2020
1 parent 80a339d commit 54b75dc
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit 54b75dc

Please sign in to comment.