Add decorator for matching regular expressions #136
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 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.13.1 | |
- uses: pre-commit/action@v2.0.3 | |
unittest: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.13.1 | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: 1.8.4 | |
- name: Install dependencies | |
run: poetry install --no-dev | |
- name: Run unit tests | |
run: poetry run python -m unittest discover |