Base64 attachments #105
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: Run Tests | |
on: | |
# tests can be called from other workflows | |
workflow_call: | |
# always run tests for every push to master | |
push: | |
branches: [master] | |
# always run tests for every PR | |
pull_request: | |
branches: [master] | |
jobs: | |
pre-commit: | |
name: Run code checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- uses: pre-commit/[email protected] | |
unittest: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.5.1 | |
- name: Install dependencies | |
run: poetry install --no-dev | |
- name: Run unit tests | |
run: poetry run python -m unittest discover |