updated readme and removed lock poetry file #37
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: Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.10.9'] | |
steps: | |
- uses: actions/checkout@v3 | |
name: Set up Python ${{ matrix.python-version }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up cache | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} | |
- name: Install Poetry | |
run: | | |
pip install -U pip | |
pip install poetry | |
poetry self update | |
poetry config virtualenvs.in-project true | |
poetry install | |
- name: Run linting and other code quality checks | |
run: | | |
poetry run pre-commit run --all-files | |
- name: Run tests | |
run: export PYTHONPATH=$PYTHONPATH:$(pwd); poetry run pytest -c pyproject.toml |