Skip to content

Commit 1c20274

Browse files
committed
Do not test extra dependencies with Python 3.10
- some dependencies are not available for the beta version - comment out docker tests - setup currently fails, has to be handled separately
1 parent 41de619 commit 1c20274

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Testsuite
33
on:
44
[push, pull_request]
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
linter:
812
runs-on: ${{ matrix.os }}
@@ -65,47 +69,51 @@ jobs:
6569
run: |
6670
export TEST_REAL_FS=1
6771
python -m pyfakefs.tests.all_tests_without_extra_packages
68-
shell: bash
6972
- name: Run setup.py test (uses pytest)
7073
run: |
7174
python setup.py test
72-
shell: bash
7375
- name: Run unit tests without extra packages as root
7476
run: |
7577
if [[ '${{ matrix.os }}' != 'windows-2016' ]]; then
7678
# provide the same path as non-root to get the correct virtualenv
7779
sudo env "PATH=$PATH" python -m pyfakefs.tests.all_tests_without_extra_packages
7880
fi
79-
shell: bash
8081
- name: Install extra dependencies
8182
run: |
82-
pip install -r extra_requirements.txt
83+
# some extra dependencies are not avaialble in 3.10 Beta yet
84+
# so we exclude it from all tests on extra dependencies
85+
if [[ '${{ matrix.python-version }}' != '3.10.0-beta.1' ]]; then
86+
pip install -r extra_requirements.txt
87+
fi
8388
- name: Run unit tests with extra packages as non-root user
8489
run: |
85-
python -m pyfakefs.tests.all_tests
90+
if [[ '${{ matrix.python-version }}' != '3.10.0-beta.1' ]]; then
91+
python -m pyfakefs.tests.all_tests
92+
fi
8693
- name: Run pytest tests
8794
run: |
88-
export PY_VERSION=${{ matrix.python-version }}
89-
$GITHUB_WORKSPACE/.github/workflows/run_pytest.sh
90-
shell: bash
95+
if [[ '${{ matrix.python-version }}' != '3.10.0-beta.1' ]]; then
96+
export PY_VERSION=${{ matrix.python-version }}
97+
$GITHUB_WORKSPACE/.github/workflows/run_pytest.sh
98+
fi
9199
- name: Run performance tests
92100
run: |
93-
if [[ '${{ matrix.os }}' != 'macOS-latest' ]]; then
101+
if [[ '${{ matrix.os }}' != 'macOS-latest' && '${{ matrix.python-version }}' != '3.10.0-beta.1' ]]; then
94102
export TEST_PERFORMANCE=1
95103
python -m pyfakefs.tests.performance_test
96104
fi
97-
shell: bash
98105
99-
dockertests:
100-
runs-on: ubuntu-latest
101-
strategy:
102-
fail-fast: false
103-
matrix:
104-
docker-image: [centos, debian, fedora, ubuntu]
105-
steps:
106-
- uses: actions/checkout@v2
107-
- name: Setup docker container
108-
run: |
109-
docker build -t pyfakefs -f $GITHUB_WORKSPACE/.github/workflows/dockerfiles/Dockerfile_${{ matrix.docker-image }} . --build-arg github_repo=$GITHUB_REPOSITORY --build-arg github_branch=$(basename $GITHUB_REF)
110-
- name: Run tests
111-
run: docker run -t pyfakefs
106+
# setting up up docker containers currently fails
107+
# dockertests:
108+
# runs-on: ubuntu-latest
109+
# strategy:
110+
# fail-fast: false
111+
# matrix:
112+
# docker-image: [centos, debian, fedora, ubuntu]
113+
# steps:
114+
# - uses: actions/checkout@v2
115+
# - name: Setup docker container
116+
# run: |
117+
# docker build -t pyfakefs -f $GITHUB_WORKSPACE/.github/workflows/dockerfiles/Dockerfile_${{ matrix.docker-image }} . --build-arg github_repo=$GITHUB_REPOSITORY --build-arg github_branch=$(basename $GITHUB_REF)
118+
# - name: Run tests
119+
# run: docker run -t pyfakefs

0 commit comments

Comments
 (0)