[C] Update pypi update and fixed rasterize numpy error
#7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request for Multiple Platform with CPU | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "doc/**" | |
| - "**.md" | |
| jobs: | |
| ci: | |
| name: CI | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.12"] | |
| os: ["ubuntu-latest", "macos-13", "macos-latest"] # "ubuntu-24.04-arm", # replace with "macos-latest" if needed | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| check-latest: true | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install -U pip wheel "numpy>=2" "cython>=3.0.12" "setuptools>=69" | |
| python setup.py build_ext --inplace | |
| python -m pip install . | |
| - name: Lint with Pylint | |
| run: | | |
| python -m pip install pylint | |
| python -m pylint pyface --rcfile=.github/workflows/.pylintrc | |
| - name: Run Tests with Pytest | |
| run: | | |
| mkdir -p tests/coverage | |
| python -m pip install pytest pytest-cov typeguard | |
| python -m pytest tests --junitxml=tests/coverage/cov-junitxml.xml --cov=pyface | tee tests/coverage/cov.txt | |
| - name: Pytest Coverage Comment | |
| if: always() | |
| id: coverageComment | |
| uses: MishaKav/pytest-coverage-comment@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| pytest-coverage-path: tests/coverage/cov.txt | |
| junitxml-path: tests/coverage/cov-junitxml.xml | |
| - name: Clean artifacts | |
| if: always() | |
| run: rm -rf dist wheelhouse build *.egg-info |