diff --git a/.github/workflows/testing_pr.yml b/.github/workflows/testing_pr.yml index abff5383..3f4fafab 100644 --- a/.github/workflows/testing_pr.yml +++ b/.github/workflows/testing_pr.yml @@ -2,8 +2,7 @@ name: "Testing Pull Request" on: pull_request: - branches: - - "master" + jobs: build: @@ -12,32 +11,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