Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 25 additions & 30 deletions .github/workflows/testing_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

on:
pull_request:
branches:
- "master"


jobs:
build:
Expand All @@ -12,32 +11,28 @@
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

Check warning on line 20 in .github/workflows/testing_pr.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/testing_pr.yml#L20

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.

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
Loading