Merge pull request #178 from lavr/fix/ci-update-actions #94
This file contains hidden or 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.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} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| cache: pip | |
| - name: update pip | |
| run: | | |
| pip install -U wheel | |
| pip install -U setuptools | |
| python -m pip install -U pip | |
| - 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: python-emails-tests@lavr.me | |
| SMTP_TEST_MAIL_TO: python-emails-tests@lavr.me | |
| SMTP_TEST_SETS: "" | |
| run: tox -e ${{ matrix.tox }} |