Skip to content

Commit fb0a92a

Browse files
author
Agus Makmun
committed
feat: initial add github workflows
1 parent 5d57688 commit fb0a92a

File tree

2 files changed

+43
-86
lines changed

2 files changed

+43
-86
lines changed

.github/workflows/run-tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
matrix:
16+
os: [ macos-latest, ubuntu-latest ]
17+
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10" ]
18+
django-version: [ 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0 ]
19+
20+
steps:
21+
- name: Install system dependencies (windows)
22+
if: matrix.os == 'windows-latest'
23+
uses: msys2/setup-msys2@v2
24+
with:
25+
update: true
26+
install: zlib
27+
28+
- uses: actions/[email protected]
29+
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Install dependencies
36+
run: |
37+
python dev.py -no-container
38+
pip install -q Django==${{ matrix.django-version }}
39+
python -m pip install --upgrade pip
40+
python setup.py install
41+
- name: Test with pytest
42+
run: |
43+
python runtests.py

.travis.yml

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

0 commit comments

Comments
 (0)