diff options
author | mrbean-bremen <hansemrbean@googlemail.com> | 2022-03-15 21:00:23 +0100 |
---|---|---|
committer | mrbean-bremen <hansemrbean@googlemail.com> | 2022-03-15 21:37:32 +0100 |
commit | 9e8fbfdd13175ef5c45188b11cc944e62cb2ba4b (patch) | |
tree | 2889f210dc1b5a6a43d25b766f250967002cd7ef | |
parent | d81cd56b7f992d4b366d184c903b465f3ca038af (diff) | |
download | pyfakefs-9e8fbfdd13175ef5c45188b11cc944e62cb2ba4b.tar.gz |
Add tests with different pytest versions
- change first supported pytest version to 3.0
(older version do not work anymore)
-rw-r--r-- | .github/workflows/pythonpackage.yml | 33 | ||||
-rw-r--r-- | CHANGES.md | 3 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | docs/intro.rst | 2 |
4 files changed, 33 insertions, 7 deletions
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b00f93f..fd71e31 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -104,11 +104,6 @@ jobs: run: | python -m pyfakefs.tests.all_tests shell: bash - - name: Run pytest tests - run: | - export PY_VERSION=${{ matrix.python-version }} - $GITHUB_WORKSPACE/.github/workflows/run_pytest.sh - shell: bash - name: Run performance tests run: | if [[ '${{ matrix.os }}' != 'macOS-latest' ]]; then @@ -117,6 +112,34 @@ jobs: fi shell: bash + pytest-test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-2016] + python-version: [3.9] + pytest-version: [3.0.0, 3.5.1, 4.0.2, 4.5.0, 5.0.1, 5.4.3, 6.0.2, 6.2.5, 7.0.1, 7.1.0] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install -U pytest==${{ matrix.pytest-version }} + if [[ '${{ matrix.pytest-version }}' == '4.0.2' ]]; then + pip install -U attrs==19.1.0 + fi + shell: bash + - name: Run pytest tests + run: | + export PY_VERSION=${{ matrix.python-version }} + $GITHUB_WORKSPACE/.github/workflows/run_pytest.sh + shell: bash + dependency-check: runs-on: ${{ matrix.os }} strategy: @@ -7,6 +7,9 @@ The released versions correspond to PyPi releases. * only skip `_pytest.pathlib` in pytest versions where it is actually present (see [#669](../../issues/669)) +### Infrastructure +* add tests with different pytest versions + ## [Version 4.5.5](https://pypi.python.org/pypi/pyfakefs/4.5.5) (2022-02-14) Bugfix release, needed for compatibility with pytest 7.0. @@ -46,7 +46,7 @@ using convenience functions. pyfakefs works with CPython 3.6 and above, on Linux, Windows and OSX (MacOS), and with PyPy3. -pyfakefs works with [PyTest](http://doc.pytest.org) version 2.8.6 or above. +pyfakefs works with [PyTest](http://doc.pytest.org) version 3.0.0 or above. pyfakefs will not work with Python libraries that use C libraries to access the file system. This is because pyfakefs cannot patch the underlying C libraries' diff --git a/docs/intro.rst b/docs/intro.rst index cf26052..ba7cc9a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -9,7 +9,7 @@ The software under test requires no modification to work with pyfakefs. pyfakefs works with CPython 3.6 and above, on Linux, Windows and OSX (MacOS), and with PyPy3. -pyfakefs works with `PyTest <doc.pytest.org>`__ version 2.8.6 or above. +pyfakefs works with `PyTest <doc.pytest.org>`__ version 3.0.0 or above. Installation ------------ |