add type checks for backticks_to_code_tags #85
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: [main] | |
paths: | |
- "tests/**" | |
- "src/**" | |
- "pyproject.toml" | |
- "poetry.lock" | |
- ".github/workflows/tests.yml" | |
pull_request: | |
branches: [main] | |
paths: | |
- "tests/**" | |
- "src/**" | |
- "pyproject.toml" | |
- "poetry.lock" | |
- ".github/workflows/tests.yml" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
merge_group: | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
#strategy: | |
concurrency: | |
group: tests-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Poetry --with dev | |
run: | | |
curl -sSL https://install.python-poetry.org | python - | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run tests | |
run: | | |
poetry run pytest tests |