Skip to content

Python 3.12 tests

Python 3.12 tests #81

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- '*'
pull_request:
branches:
- master
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312}
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311}
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-20.04, tox: py36}
services:
postfix:
image: lavr/docker-postfix
env:
SMTP_SERVER: smtp.gmail.com
SMTP_PORT: 587
SMTP_USERNAME: ${{ secrets.SMTP_TEST_GMAIL_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_TEST_GMAIL_PASSWORD }}
SERVER_HOSTNAME: python-emails-tests.github-ci.lavr.me
ports:
- 2525:25
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: update pip
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- name: get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: cache pip
uses: actions/cache@v1
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
- run: pip install tox
- name: run rests
env:
SMTP_TEST_SUBJECT_SUFFIX: "github-actions sha:${{ github.sha }} run_id:${{ github.run_id }}"
SMTP_TEST_MAIL_FROM: [email protected]
SMTP_TEST_MAIL_TO: [email protected]
SMTP_TEST_SETS: LOCAL
SMTP_TEST_LOCAL_WITHOUT_TLS: true
SMTP_TEST_LOCAL_HOST: 127.0.0.1
SMTP_TEST_LOCAL_PORT: 2525
SMTP_TEST_GMAIL_TO: [email protected]
SMTP_TEST_GMAIL_USER: ${{ secrets.SMTP_TEST_GMAIL_USER }}
SMTP_TEST_GMAIL_PASSWORD: ${{ secrets.SMTP_TEST_GMAIL_PASSWORD }}
SMTP_TEST_GMAIL_WITH_TLS: true
SMTP_TEST_GMAIL_HOST: smtp.gmail.com
SMTP_TEST_GMAIL_PORT: 587
SMTP_TEST_YAMAIL_TO: [email protected]
SMTP_TEST_YAMAIL_FROM: [email protected]
SMTP_TEST_YAMAIL_USER: python.emails.test.2
SMTP_TEST_YAMAIL_PASSWORD: ${{ secrets.SMTP_TEST_YAMAIL_PASSWORD }}
SMTP_TEST_YAMAIL_WITH_TLS: true
SMTP_TEST_YAMAIL_HOST: smtp.yandex.ru
SMTP_TEST_YAMAIL_PORT: 25
run: tox -e ${{ matrix.tox }}