@@ -3,6 +3,10 @@ name: Testsuite
3
3
on :
4
4
[push, pull_request]
5
5
6
+ defaults :
7
+ run :
8
+ shell : bash
9
+
6
10
jobs :
7
11
linter :
8
12
runs-on : ${{ matrix.os }}
@@ -65,47 +69,51 @@ jobs:
65
69
run : |
66
70
export TEST_REAL_FS=1
67
71
python -m pyfakefs.tests.all_tests_without_extra_packages
68
- shell : bash
69
72
- name : Run setup.py test (uses pytest)
70
73
run : |
71
74
python setup.py test
72
- shell : bash
73
75
- name : Run unit tests without extra packages as root
74
76
run : |
75
77
if [[ '${{ matrix.os }}' != 'windows-2016' ]]; then
76
78
# provide the same path as non-root to get the correct virtualenv
77
79
sudo env "PATH=$PATH" python -m pyfakefs.tests.all_tests_without_extra_packages
78
80
fi
79
- shell : bash
80
81
- name : Install extra dependencies
81
82
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
83
88
- name : Run unit tests with extra packages as non-root user
84
89
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
86
93
- name : Run pytest tests
87
94
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
91
99
- name : Run performance tests
92
100
run : |
93
- if [[ '${{ matrix.os }}' != 'macOS-latest' ]]; then
101
+ if [[ '${{ matrix.os }}' != 'macOS-latest' && '${{ matrix.python-version }}' != '3.10.0-beta.1' ]]; then
94
102
export TEST_PERFORMANCE=1
95
103
python -m pyfakefs.tests.performance_test
96
104
fi
97
- shell : bash
98
105
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