@@ -32,12 +32,10 @@ jobs:
3232 runs-on : macos-latest
3333 steps :
3434 - uses : actions/checkout@v4
35- - uses : actions/setup-python@v5
36- with :
37- python-version : ' 3.x'
3835 - run : |
39- python -m pip install --upgrade pip
40- python -m pip install pytest pytest-xdist pytest-subtests fastjsonschema coverage
36+ export PATH="$HOME/Library/Python/3.9/bin:$PATH"
37+ /usr/bin/python3 -m pip install --upgrade pip
38+ /usr/bin/python3 -m pip install pytest pytest-xdist pytest-subtests fastjsonschema
4139 - run : brew install pkg-config ninja llvm qt@5
4240 - env :
4341 CPPFLAGS : " -I/opt/homebrew/include"
4846 # These cannot evaluate anything, so we cannot set PATH or SDKROOT here
4947 run : |
5048 export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
51- export PATH="$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:$PATH"
52- export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
53- ./tools/run_with_cov.py ./run_unittests.py
54-
55- - name : Aggregate coverage reports
56- run : ./ci/combine_cov.sh
57-
58- - name : Upload coverage report
59- uses : codecov/codecov-action@v3
60- with :
61- files : .coverage/coverage.xml
62- name : " appleclang [unit tests]"
63- fail_ci_if_error : false
64- verbose : true
49+ export PATH="$HOME/Library/Python/3.9/bin:$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:$PATH"
50+ export PKG_CONFIG_PATH="/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/Current/lib/pkgconfig:/opt/homebrew/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
51+ /usr/bin/python3 ./run_unittests.py
6552
6653
6754 project-tests-appleclang :
9885 # https://github.com/actions/setup-python/issues/58
9986 - run : brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 boost-python3 gtk-doc zstd ncurses objfw libomp
10087 - run : |
101- python3 -m pip install --upgrade setuptools
102- python3 -m pip install --upgrade pip
103- python3 -m pip install cython coverage
88+ python3 -m pip install cython
10489 - env :
10590 CPPFLAGS : " -I/opt/homebrew/include"
10691 LDFLAGS : " -L/opt/homebrew/lib"
@@ -110,20 +95,11 @@ jobs:
11095 # These cannot evaluate anything, so we cannot set PATH or SDKROOT here
11196 run : |
11297 export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
113- export PATH="$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/ncurses/bin:$PATH"
98+ # Append LLVM's bin directory to PATH to prioritise Apple Clang over Homebrew Clang.
99+ # We need this to avoid objfw test failures.
100+ export PATH="$HOME/tools:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/ncurses/bin:$PATH:/opt/homebrew/opt/llvm/bin"
114101 export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig:/opt/homebrew/opt/lapack/lib/pkgconfig:/opt/homebrew/opt/ncurses/lib/pkgconfig:$PKG_CONFIG_PATH"
115- ./tools/run_with_cov.py ./run_project_tests.py --backend=ninja
116-
117- - name : Aggregate coverage reports
118- run : ./ci/combine_cov.sh
119-
120- - name : Upload coverage report
121- uses : codecov/codecov-action@v3
122- with :
123- files : .coverage/coverage.xml
124- name : " appleclang [project tests; unity=${{ matrix.unity }}]"
125- fail_ci_if_error : false
126- verbose : true
102+ ./run_project_tests.py --backend=ninja
127103
128104 Qt4macos :
129105 # This job only works on Intel Macs, because OpenSSL 1.0 doesn't build on
0 commit comments