Fix the filter expr to execute job on new tag #26
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: Test PRs | |
on: | |
pull_request: | |
types: [labeled] # So that only labelled PRs get run. https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | |
# Explicitly grant the `secrets.GITHUB_TOKEN` no permissions. | |
permissions: {} | |
jobs: | |
execute-unittests: | |
name: Execute the unittests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Action | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check pyproject.toml | |
run: ./scripts/check-pyproject.sh | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install poetry | |
run: python3 -m pip install poetry | |
- name: Install Python libraries | |
run: poetry install | |
- name: Linter | |
run: scripts/format-code.sh --check | |
- name: Run unittests | |
run: poetry run pytest tests --timeout 15 |