Skip to content

Commit b3c434a

Browse files
committed
Add tests workflow
1 parent a3d91ae commit b3c434a

2 files changed

Lines changed: 44 additions & 40 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Django Task API Tests
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.6, 3.7, 3.8, 3.9]
18+
celery-version: [4.*, 5.*]
19+
django-version: [2.2, 3.1, 3.2]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install celery
29+
run: |
30+
pip install "celery==${{ celery-version }}"
31+
32+
- name: Install Django
33+
run: |
34+
- pip install "django==${{ django-verrsion }}"
35+
36+
- name: Install dependencies
37+
run: |
38+
poetry env use system
39+
poetry install
40+
41+
- name: Run tests
42+
run: |
43+
echo "Using celery version " `celery --version`
44+
pytest

.travis.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)