@@ -14,26 +14,26 @@ jobs:
1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- python-version : [3.7, 3.8, 3.9]
17+ python-version : [" 3.7", " 3.8", " 3.9", "3.10", "3.11" ]
1818 steps :
19- - uses : actions/checkout@v2
20- - name : Set up Python ${{ matrix.python-version }}
21- uses : actions/setup-python@v2
22- with :
23- python-version : ${{ matrix.python-version }}
24- - name : Install dependencies
25- run : |
26- python -m pip install --upgrade pip
27- pip install pipenv --upgrade
28- pipenv install --python ${{ matrix.python-version }} --dev
29- - name : Run linter
30- run : pipenv run flake8 .
31- - name : Run tests
32- run : PYTHONPATH="$(pwd):$PYTHONPATH" pipenv run py.test --cov=crontools --cov-report=xml tests
33- - name : Upload coverage to Codecov
34- uses : codecov/codecov-action@v1
35- with :
36- token : ${{ secrets.CODECOV_TOKEN }}
37- files : ./coverage.xml
38- flags : unittests
39- fail_ci_if_error : true
19+ - uses : actions/checkout@v2
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v2
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install poetry
28+ poetry install --no-root
29+ - name : Run pre-commit hooks
30+ run : poetry run pre-commit run --hook-stage merge-commit --all-files
31+ - name : Run tests
32+ run : PYTHONPATH="$(pwd):$PYTHONPATH" poetry run py.test --cov=crontools --cov-report=xml tests
33+ - name : Upload coverage to Codecov
34+ uses : codecov/codecov-action@v1
35+ with :
36+ token : ${{ secrets.CODECOV_TOKEN }}
37+ files : ./coverage.xml
38+ flags : unittests
39+ fail_ci_if_error : true
0 commit comments