If I try to create a venv in my home dir, switch to a temp dir instead #469
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: pip | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run linting | |
run: | | |
ruff check . | |
ruff format --check . | |
- name: Check README files with Cog | |
run: ./text/recog --check | |
- name: Run tests | |
run: | | |
find . -name 'test_*.py' -not -path './.venv/*' | sort | xargs pytest |