mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
github actions: add django 4.1, switch to Codecov
This commit is contained in:
parent
b86706fec5
commit
f40705b739
3 changed files with 33 additions and 31 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Set up Python'
|
- name: 'Set up Python'
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
56
.github/workflows/test.yml
vendored
56
.github/workflows/test.yml
vendored
|
|
@ -1,11 +1,5 @@
|
||||||
name: Test
|
name: Test
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -13,34 +7,42 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python-version: 3.6
|
- python-version: 3.6
|
||||||
DJANGO: 3.2.14
|
django-version: 3.2
|
||||||
- python-version: 3.7
|
- python-version: 3.7
|
||||||
DJANGO: 3.2.14
|
django-version: 3.2
|
||||||
- python-version: 3.8
|
- python-version: 3.8
|
||||||
DJANGO: 3.2.14
|
django-version: 3.2
|
||||||
- python-version: 3.9
|
- python-version: 3.9
|
||||||
DJANGO: 3.2.14
|
django-version: 3.2
|
||||||
- python-version: '3.10'
|
- python-version: '3.10'
|
||||||
DJANGO: 3.2.14
|
django-version: 3.2
|
||||||
- python-version: 3.8
|
- python-version: 3.8
|
||||||
DJANGO: 4.0.6
|
django-version: 4.0
|
||||||
- python-version: 3.9
|
- python-version: 3.9
|
||||||
DJANGO: 4.0.6
|
django-version: 4.0
|
||||||
- python-version: '3.10'
|
- python-version: '3.10'
|
||||||
DJANGO: 4.0.6
|
django-version: 4.0
|
||||||
|
- python-version: 3.8
|
||||||
|
django-version: 4.1
|
||||||
|
- python-version: 3.9
|
||||||
|
django-version: 4.1
|
||||||
|
- python-version: '3.10'
|
||||||
|
django-version: 4.1
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
- name: 'Set up Python ${{ matrix.python-version }}'
|
- name: 'Set up Python ${{ matrix.python-version }}'
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: '${{ matrix.python-version }}'
|
python-version: '${{ matrix.python-version }}'
|
||||||
- uses: actions/checkout@v2
|
cache: 'pip'
|
||||||
- run: pip install coveralls
|
- name: Install dependencies
|
||||||
- run: pip install -e .
|
run: |
|
||||||
- run: pip install -r tests/requirements.txt
|
pip install -e .
|
||||||
- run: 'pip install Django==${DJANGO}'
|
pip install -r tests/requirements.txt
|
||||||
env:
|
pip install "Django~=${{ matrix.django-version }}.0" .
|
||||||
DJANGO: '${{ matrix.DJANGO }}'
|
- name: Run Tests
|
||||||
- run: make test
|
run: |
|
||||||
- run: coveralls --service=github
|
echo "$(python --version) / Django $(django-admin --version)"
|
||||||
env:
|
make test
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
coverage xml
|
||||||
|
- uses: codecov/codecov-action@v2
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -43,9 +43,9 @@ setup(
|
||||||
keywords="avatar, django",
|
keywords="avatar, django",
|
||||||
author="Eric Florenzano",
|
author="Eric Florenzano",
|
||||||
author_email="floguy@gmail.com",
|
author_email="floguy@gmail.com",
|
||||||
maintainer="Grant McConnaughey",
|
maintainer="Johannes Wilm",
|
||||||
maintainer_email="grantmcconnaughey@gmail.com",
|
maintainer_email="johannes@fiduswriter.org",
|
||||||
url="http://github.com/grantmcconnaughey/django-avatar/",
|
url="http://github.com/johanneswilm/django-avatar/",
|
||||||
license="BSD",
|
license="BSD",
|
||||||
packages=find_packages(exclude=["tests"]),
|
packages=find_packages(exclude=["tests"]),
|
||||||
package_data={
|
package_data={
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue