mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
aaff333f01
* Update tests * Enable tests on 3.11 * Fix coverage config in tox.ini * feat: re cythonize to support python 3.11 (#646) * feat: re cythonize to support python 3.11 * misc: added tox env for python 3.11 * misc: add classifiers for python 3.11 * fix: skip tests for removed functions * misc: CI updates for python 3.11 Co-authored-by: Roman Mogylatov <rmogilatov@gmail.com> * Update tests and linters job * Update test skip decorators * Fix tox.ini * Update 3.10 to be explicit string literal * Move pypy3 to legacy job * Fix error in resourse typing test * Update publishing job * Update actions and setup-python versions * Update changelog * Update pypy * Update tox.ini with new pypy versions * Update publishing job * Update actions/upload-artifact@v3 * Update ubuntu to 22.04 on docs publishing job * Update actions/download-artifact@v3 and pypa/gh-action-pypi-publish@release/v1 Co-authored-by: Gen Xu <xgbarry@gmail.com>
72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
name: Tests and linters
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
|
|
tests-on-legacy-versions:
|
|
name: Run tests on legacy versions
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [2.7, 3.5, 3.6, 3.7, pypy2.7, pypy3.9]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- run: pip install tox
|
|
- run: tox
|
|
env:
|
|
TOXENV: ${{ matrix.python-version }}
|
|
|
|
test-on-different-versions:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.8, 3.9, "3.10", 3.11]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- run: pip install tox
|
|
- run: tox
|
|
env:
|
|
TOXENV: ${{ matrix.python-version }}
|
|
|
|
test-coverage:
|
|
name: Run tests with coverage
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
- run: pip install tox cython
|
|
- run: make cythonize
|
|
- run: tox
|
|
env:
|
|
TOXENV: coveralls
|
|
|
|
linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
toxenv: [flake8, pydocstyle, mypy, pylint]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
- run: pip install tox
|
|
- run: tox
|
|
env:
|
|
TOXENV: ${{ matrix.toxenv }}
|