forked from praekeltfoundation/django-google-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (57 loc) · 1.7 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Continuous Integration
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.8"
tox-env: "py38-dj22"
- python-version: "3.8"
tox-env: "py38-dj32"
- python-version: "3.8"
tox-env: "py38-dj40"
- python-version: "3.9"
tox-env: "py39-dj22"
- python-version: "3.9"
tox-env: "py39-dj32"
- python-version: "3.9"
tox-env: "py39-dj40"
- python-version: "3.10"
tox-env: "py310-dj22"
- python-version: "3.10"
tox-env: "py310-dj32"
- python-version: "3.10"
tox-env: "py310-dj40"
- python-version: "3.11"
tox-env: "py311-dj40"
- python-version: "3.8"
tox-env: "lint"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install testing dependancies
run: pip install --upgrade pip tox coveralls
- name: Run tests
env:
TOXENV: ${{ matrix.tox-env }}
run: tox
build-and-publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install build dependancies
run: pip install --upgrade pip setuptools wheel
- name: Build
run: python setup.py sdist bdist_wheel
- uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags')
with:
password: ${{ secrets.PYPI_API_TOKEN }}