implement other functios #88
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 Default Hooks | |
on: | |
push: | |
branches: | |
- fix-ci | |
- dev | |
- master | |
paths: | |
- '**.py' | |
- 'Test*.yml' | |
- '**.lock' | |
- '**.yaml' | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: 3.11 | |
cache: true | |
- name: Check Cache | |
id: cache-check | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/pdm.lock') }} | |
- name: Install dependencies | |
if: steps.cache-check.outputs.cache-hit != 'true' | |
run: pdm install | |
- name: Test with unittest | |
run: | | |
pdm run python -m unittest tests.hook_test |