From e5daf10e9d35bc7fa0aab53f55fb2d26d54d01d3 Mon Sep 17 00:00:00 2001 From: Fleur Dragan Date: Tue, 16 Aug 2022 18:07:09 -0500 Subject: [PATCH] trying to get ci set up --- .github/workflows/ci.yaml | 27 +++++++++++++++++++++++++++ readme.rst | 4 ++-- tox.ini | 23 ++++++++++++++--------- 3 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..fa82f4b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 + diff --git a/readme.rst b/readme.rst index 0aac06b..7955f5b 100644 --- a/readme.rst +++ b/readme.rst @@ -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 diff --git a/tox.ini b/tox.ini index b8c7c18..cdddeb5 100644 --- a/tox.ini +++ b/tox.ini @@ -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