-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (33 loc) · 905 Bytes
/
tests.yml
File metadata and controls
33 lines (33 loc) · 905 Bytes
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
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-pytest:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
os: [ubuntu-22.04] # windows-latest , macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt install -y libgl1-mesa-glx
if: matrix.os == 'ubuntu-22.04'
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install CadQuery and pytest
run: |
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e .[dev]
- name: Run tests
run: |
python -m pytest -v --ignore=tests/test_freecad.py