Skip to content

[C] Update pypi update and fixed rasterize numpy error #25

[C] Update pypi update and fixed rasterize numpy error

[C] Update pypi update and fixed rasterize numpy error #25

Workflow file for this run

name: Pull Request
on:
pull_request:
branches: [main]
paths-ignore:
# - "**/version.h"
- "doc/**"
- "**.md"
jobs:
ci:
name: CI
runs-on: [self-hosted, unicorn]
strategy:
matrix:
python-version:
- "3.10"
- "3.12"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python (host)
uses: actions/setup-python@v5
with:
check-latest: true
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python3 -m pip install -U pip wheel numpy>=2 cython>=3.0.12
python3 setup.py build_ext --inplace
python3 -m pip install .
- name: Lint with Pylint
run: |
python3 -m pip install pylint
python3 -m pylint pyface --rcfile=.github/workflows/.pylintrc
- name: Run Tests with Pytest
run: |
mkdir -p tests/coverage && \
python3 -m pip install pytest pylint pytest-cov typeguard && \
python3 -m pytest tests --junitxml=tests/coverage/cov-junitxml.xml --cov=pyface | tee tests/coverage/cov.txt
- name: Pytest Coverage Comment
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