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
|
||||
steps:
|
||||
- name: 'Set up Python'
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
|||
56
.github/workflows/test.yml
vendored
56
.github/workflows/test.yml
vendored
|
|
@ -1,11 +1,5 @@
|
|||
name: Test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -13,34 +7,42 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- python-version: 3.6
|
||||
DJANGO: 3.2.14
|
||||
django-version: 3.2
|
||||
- python-version: 3.7
|
||||
DJANGO: 3.2.14
|
||||
django-version: 3.2
|
||||
- python-version: 3.8
|
||||
DJANGO: 3.2.14
|
||||
django-version: 3.2
|
||||
- python-version: 3.9
|
||||
DJANGO: 3.2.14
|
||||
django-version: 3.2
|
||||
- python-version: '3.10'
|
||||
DJANGO: 3.2.14
|
||||
django-version: 3.2
|
||||
- python-version: 3.8
|
||||
DJANGO: 4.0.6
|
||||
django-version: 4.0
|
||||
- python-version: 3.9
|
||||
DJANGO: 4.0.6
|
||||
django-version: 4.0
|
||||
- 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:
|
||||
- uses: actions/checkout@v3
|
||||
- name: 'Set up Python ${{ matrix.python-version }}'
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '${{ matrix.python-version }}'
|
||||
- uses: actions/checkout@v2
|
||||
- run: pip install coveralls
|
||||
- run: pip install -e .
|
||||
- run: pip install -r tests/requirements.txt
|
||||
- run: 'pip install Django==${DJANGO}'
|
||||
env:
|
||||
DJANGO: '${{ matrix.DJANGO }}'
|
||||
- run: make test
|
||||
- run: coveralls --service=github
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
cache: 'pip'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -e .
|
||||
pip install -r tests/requirements.txt
|
||||
pip install "Django~=${{ matrix.django-version }}.0" .
|
||||
- name: Run Tests
|
||||
run: |
|
||||
echo "$(python --version) / Django $(django-admin --version)"
|
||||
make test
|
||||
coverage xml
|
||||
- uses: codecov/codecov-action@v2
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -43,9 +43,9 @@ setup(
|
|||
keywords="avatar, django",
|
||||
author="Eric Florenzano",
|
||||
author_email="floguy@gmail.com",
|
||||
maintainer="Grant McConnaughey",
|
||||
maintainer_email="grantmcconnaughey@gmail.com",
|
||||
url="http://github.com/grantmcconnaughey/django-avatar/",
|
||||
maintainer="Johannes Wilm",
|
||||
maintainer_email="johannes@fiduswriter.org",
|
||||
url="http://github.com/johanneswilm/django-avatar/",
|
||||
license="BSD",
|
||||
packages=find_packages(exclude=["tests"]),
|
||||
package_data={
|
||||
|
|
|
|||
Loading…
Reference in a new issue