Skip to content

Commit 66ec4f2

Browse files
committed
Forgot the github directory
1 parent 3d48324 commit 66ec4f2

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: conda-incubator/setup-miniconda@v3
11+
with:
12+
activate-environment: lint
13+
python-version: 3.11
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install -e .[dev]
18+
- name: Run lint check
19+
run: |
20+
black --diff --check .

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: conda-incubator/setup-miniconda@v3
11+
with:
12+
python-version: 3.11
13+
mamba-version: "*"
14+
activate-environment: tagged-meshes
15+
channels: conda-forge,defaults
16+
channel-priority: true
17+
environment-file: environment.yml
18+
- shell: bash -el {0}
19+
run: |
20+
mamba info
21+
mamba install -y -c conda-forge -c cadquery cadquery=master
22+
mamba install -y -c conda-forge gmsh
23+
mamba install -y pytest
24+
python -m pytest -v
25+
- name: Upload output meshes as artifacts for inspection
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: exported-meshes
29+
path: "*.msh"

0 commit comments

Comments
 (0)