migrate to poetry #24
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: Install system package dependencies | |
run: | | |
sudo apt-get install -y python3-enchant aspell-en aspell-de | |
- name: install poetry | |
run: | | |
pip install pipx && pipx install poetry~=1.6 | |
- name: install python dependencies | |
run: | | |
poetry install --no-interaction | |
- name: running tests | |
run: coverage run --source="pytest_translations" -m "pytest" | |
- name: uploading coverage | |
run: codecov |