From a3d5cb5558e9513f72970cd0566b6a48bf21a36a Mon Sep 17 00:00:00 2001 From: guglielmopadula <93089445+guglielmopadula@users.noreply.github.com> Date: Wed, 26 Nov 2025 20:48:57 +0100 Subject: [PATCH 1/2] Update GitHub Actions workflow for Python testing --- .github/workflows/testing_pr.yml | 53 +++++++++++++++----------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/.github/workflows/testing_pr.yml b/.github/workflows/testing_pr.yml index abff5383..1461bf79 100644 --- a/.github/workflows/testing_pr.yml +++ b/.github/workflows/testing_pr.yml @@ -5,6 +5,7 @@ on: branches: - "master" + jobs: build: runs-on: ${{ matrix.os }} @@ -12,32 +13,28 @@ jobs: fail-fast: false matrix: os: [windows-latest, macos-latest, ubuntu-latest] - python-version: ["3.9", "3.10"] - + python-version: ["3.9", "3.10"] steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Setup Conda - uses: s-weigand/setup-conda@v1 - with: - python-version: ${{ matrix.python-version }} - update-conda: true - conda-channels: conda-forge, anaconda - - - name: Install pythonocc-core (Conda) - run: conda install --yes -c conda-forge -c anaconda pythonocc-core - shell: bash - - - name: Install pip dependencies - run: | - python -m pip install --upgrade pip - python -m pip install smithers[vtk] - python -m pip install .[test] - - - name: Run tests with pytest - run: python -m pytest -v + - uses: actions/checkout@v2 + + + - name: Installing conda + uses: conda-incubator/setup-miniconda@v3 + + with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + channels: anaconda, conda-forge + + - name: Installing packages + shell: bash -el {0} + run: | + conda install --yes -c conda-forge -c anaconda pythonocc-core + python -m pip install --upgrade pip + python -m pip install smithers[vtk] + python -m pip install .[test] + + - name: Test with pytest + shell: bash -el {0} + run: | + python -m pytest From 651cf6991028b18cde959c839f76bf8815ddfdaa Mon Sep 17 00:00:00 2001 From: guglielmopadula <93089445+guglielmopadula@users.noreply.github.com> Date: Wed, 26 Nov 2025 21:00:40 +0100 Subject: [PATCH 2/2] Update pull request trigger to remove branch filter Removed branch restriction for pull request trigger. --- .github/workflows/testing_pr.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/testing_pr.yml b/.github/workflows/testing_pr.yml index 1461bf79..3f4fafab 100644 --- a/.github/workflows/testing_pr.yml +++ b/.github/workflows/testing_pr.yml @@ -2,8 +2,6 @@ name: "Testing Pull Request" on: pull_request: - branches: - - "master" jobs: