install some libs #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.13', python: '3.13.0-alpha.2', os: ubuntu-latest, tox: py313} | |
- {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} | |
# ubuntu-16.04 is deprecated. TODO: remove python 2 support ? | |
# - {name: '2.7', python: '2.7', os: ubuntu-16.04, tox: py27} | |
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 | |
- run: apt install libxml2-dev libxslt-dev | |
- 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 }} |