|
1 |
| -name: MacOS |
2 |
| -on: [push, pull_request] |
3 |
| -jobs: |
4 |
| - macosx: |
5 |
| - runs-on: macos-latest |
6 |
| - strategy: |
7 |
| - matrix: |
8 |
| - python: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
9 |
| - static_deps: ["static", ""] |
10 |
| - steps: |
11 |
| - - uses: actions/checkout@v3 |
12 |
| - - name: Setup Python |
13 |
| - uses: actions/setup-python@v4 |
14 |
| - with: |
15 |
| - python-version: ${{ matrix.python }} |
16 |
| - - name: Install build dependencies |
17 |
| - run: | |
18 |
| - pip install --upgrade pip setuptools wheel build |
19 |
| - brew install libxml2 libxmlsec1 pkg-config |
20 |
| - - name: Build macosx_x86_64 wheel |
21 |
| - env: |
22 |
| - CC: clang |
23 |
| - CFLAGS: "-fprofile-instr-generate -fcoverage-mapping" |
24 |
| - LDFLAGS: "-fprofile-instr-generate -fcoverage-mapping" |
25 |
| - PYXMLSEC_STATIC_DEPS: ${{ matrix.static_deps }} |
26 |
| - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
27 |
| - run: | |
28 |
| - export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig" |
29 |
| - python -m build |
30 |
| - rm -rf build/ |
31 |
| - - name: Set environment variables |
32 |
| - shell: bash |
33 |
| - run: | |
34 |
| - echo "PKGVER=$(python setup.py --version)" >> $GITHUB_ENV |
35 |
| - echo "LLVM_PROFILE_FILE=pyxmlsec.profraw" >> $GITHUB_ENV |
36 |
| - - name: Install test dependencies |
37 |
| - run: | |
38 |
| - export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig" |
39 |
| - pip install coverage --upgrade --no-binary=lxml -r requirements-test.txt |
40 |
| - pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ |
41 |
| - echo "PYXMLSEC_LIBFILE=$(python -c 'import xmlsec; print(xmlsec.__file__)')" >> $GITHUB_ENV |
42 |
| - - name: Run tests |
43 |
| - run: | |
44 |
| - coverage run -m pytest -v --color=yes |
45 |
| - - name: Report coverage to codecov |
46 |
| - run: | |
47 |
| - /Library/Developer/CommandLineTools/usr/bin/llvm-profdata merge -sparse ${{ env.LLVM_PROFILE_FILE }} -output pyxmlsec.profdata |
48 |
| - /Library/Developer/CommandLineTools/usr/bin/llvm-cov show ${{ env.PYXMLSEC_LIBFILE }} --arch=$(uname -m) --instr-profile=pyxmlsec.profdata src > coverage.txt |
49 |
| - bash <(curl -s https://codecov.io/bash) -f coverage.txt |
50 |
| - if: matrix.static_deps != 'static' |
| 1 | +# name: MacOS |
| 2 | +# on: [push, pull_request] |
| 3 | +# jobs: |
| 4 | +# macosx: |
| 5 | +# runs-on: macos-latest |
| 6 | +# strategy: |
| 7 | +# matrix: |
| 8 | +# python: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
| 9 | +# static_deps: ["static", ""] |
| 10 | +# steps: |
| 11 | +# - uses: actions/checkout@v3 |
| 12 | +# - name: Setup Python |
| 13 | +# uses: actions/setup-python@v4 |
| 14 | +# with: |
| 15 | +# python-version: ${{ matrix.python }} |
| 16 | +# - name: Install build dependencies |
| 17 | +# run: | |
| 18 | +# pip install --upgrade pip setuptools wheel build |
| 19 | +# brew install libxml2 libxmlsec1 pkg-config |
| 20 | +# - name: Build macosx_x86_64 wheel |
| 21 | +# env: |
| 22 | +# CC: clang |
| 23 | +# CFLAGS: "-fprofile-instr-generate -fcoverage-mapping" |
| 24 | +# LDFLAGS: "-fprofile-instr-generate -fcoverage-mapping" |
| 25 | +# PYXMLSEC_STATIC_DEPS: ${{ matrix.static_deps }} |
| 26 | +# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 27 | +# run: | |
| 28 | +# export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig" |
| 29 | +# python -m build |
| 30 | +# rm -rf build/ |
| 31 | +# - name: Set environment variables |
| 32 | +# shell: bash |
| 33 | +# run: | |
| 34 | +# echo "PKGVER=$(python setup.py --version)" >> $GITHUB_ENV |
| 35 | +# echo "LLVM_PROFILE_FILE=pyxmlsec.profraw" >> $GITHUB_ENV |
| 36 | +# - name: Install test dependencies |
| 37 | +# run: | |
| 38 | +# export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig" |
| 39 | +# pip install coverage --upgrade --no-binary=lxml -r requirements-test.txt |
| 40 | +# pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ |
| 41 | +# echo "PYXMLSEC_LIBFILE=$(python -c 'import xmlsec; print(xmlsec.__file__)')" >> $GITHUB_ENV |
| 42 | +# - name: Run tests |
| 43 | +# run: | |
| 44 | +# coverage run -m pytest -v --color=yes |
| 45 | +# - name: Report coverage to codecov |
| 46 | +# run: | |
| 47 | +# /Library/Developer/CommandLineTools/usr/bin/llvm-profdata merge -sparse ${{ env.LLVM_PROFILE_FILE }} -output pyxmlsec.profdata |
| 48 | +# /Library/Developer/CommandLineTools/usr/bin/llvm-cov show ${{ env.PYXMLSEC_LIBFILE }} --arch=$(uname -m) --instr-profile=pyxmlsec.profdata src > coverage.txt |
| 49 | +# bash <(curl -s https://codecov.io/bash) -f coverage.txt |
| 50 | +# if: matrix.static_deps != 'static' |
0 commit comments