forked from michaelgale/cq-gridfinity
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.21 KB
/
checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run Tests
on:
pull_request:
branches:
- main # Runs on pull requests targeting the main branch
jobs:
tests:
name: Test (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: condaenv
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
# - name: Create conda environment
# run: conda env create --name condaenv
# - name: Activate conda environment
# run: conda activate condaenv
- name: Install cadquery
run: conda install -c conda-forge cadquery
- name: Install pip dependencies
run: pip install cqkit pytest
- name: Install package
run: pip install .
- name: Run tests
run: pytest tests