Skip to content

Commit 26d38da

Browse files
committed
Added workflow for unittest
1 parent 0c309fc commit 26d38da

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Contrib Repo Tests
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
env:
9+
# We use these variables to convert between tox and GHA version literals
10+
py36: 3.6
11+
py37: 3.7
12+
py38: 3.8
13+
py39: 3.9
14+
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
18+
matrix:
19+
python-version: [ py36, py37, py38, py39 ]
20+
os: [ ubuntu-20.04 ]
21+
steps:
22+
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
23+
uses: actions/checkout@v2
24+
- name: Set up Python ${{ env[matrix.python-version] }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ env[matrix.python-version] }}
28+
- name: Install tox
29+
run: pip install -U tox-factor
30+
- name: run tox
31+
run: tox -e '${{ matrix.python-version }}-{django21,psycopg2,flask}'

0 commit comments

Comments
 (0)