1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

trying to get ci set up

This commit is contained in:
Fleur Dragan 2022-08-16 18:07:09 -05:00
parent a5bfd3dce8
commit e5daf10e9d
3 changed files with 43 additions and 11 deletions

27
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,27 @@
name: django-mailbox
on:
push:
branches:
- fix-ci
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: upgrade pip
run: python -m pip install --upgrade pip
- name: install tox
run: python -m pip install tox tox-gh-actions
- name: run tox using the version of Python in PATH
run: tox

View file

@ -1,5 +1,5 @@
.. image:: https://travis-ci.org/coddingtonbear/django-mailbox.png?branch=master
:target: https://travis-ci.org/coddingtonbear/django-mailbox
.. image:: https://github.com/fleur/django-mailbox/actions/workflows/ci.yaml/badge.svg
:target: https://github.com/fleur/django-mailbox/commit/$GITHUB_SHA/checks
.. image:: https://badge.fury.io/py/django-mailbox.png
:target: http://badge.fury.io/py/django-mailbox

23
tox.ini
View file

@ -1,15 +1,20 @@
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[tox]
# sort by django version, next by python version
envlist=
flake8
py{35,36}-django111
py{35,36}-django20
py{35,36,37}-django21
py{35,36,37}-django22
py{36,37,38,39}-django30
py{36,37,38,39}-django31
py{36,37,38,39,310}-django32
py{38,39,310}-django40
py35-django{111,20,21,22}
py36-django{111,20,21,22,30,31,32}
py37-django{21,22,30,31,32}
py38-django{30,31,32,40}
py39-django{30,31,32,40}
[testenv]
passenv=EMAIL_IMAP_SERVER EMAIL_ACCOUNT EMAIL_PASSWORD EMAIL_SMTP_SERVER