Conjunction empty keys #21
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: Apply pre-commit and run tests on PR | |
on: | |
pull_request: | |
jobs: | |
# pre-commit hooks job | |
pre-commit: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11.9" | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
- name: Install dependencies | |
run: pdm install --frozen-lockfile | |
- name: Cache pre-commit hooks | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pre-commit | |
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Install pre-commit | |
run: pdm run pip install pre-commit | |
- name: Run pre-commit | |
run: pdm run pre-commit run --all-files | |
# testing job | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11.9" | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
- name: Install dependencies | |
run: pdm install --frozen-lockfile | |
- name: Run tests | |
run: pdm run pytest |