-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 914 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }}
- 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: poetry run coverage run --source="pytest_translations" -m "pytest"
- name: uploading coverage
run: poetry run codecov