add hf cache cleanup in tests #32
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: CI bpm-ai-inference | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
pytest: | |
defaults: | |
run: | |
working-directory: ./tests | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v4 | |
- | |
run: sudo apt-get install -y tesseract-ocr poppler-utils | |
- | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- | |
name: Set up poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: "1.6.1" | |
- | |
name: Install dependencies | |
run: poetry run python -m pip install -r ../requirements.linux-cpu.txt && poetry install | |
- | |
name: Run pytest | |
run: poetry run pytest |