Skip to content

Commit

Permalink
Forgot the github directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Jan 28, 2025
1 parent 3d48324 commit 66ec4f2
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: lint
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run lint check
run: |
black --diff --check .
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.11
mamba-version: "*"
activate-environment: tagged-meshes
channels: conda-forge,defaults
channel-priority: true
environment-file: environment.yml
- shell: bash -el {0}
run: |
mamba info
mamba install -y -c conda-forge -c cadquery cadquery=master
mamba install -y -c conda-forge gmsh
mamba install -y pytest
python -m pytest -v
- name: Upload output meshes as artifacts for inspection
uses: actions/upload-artifact@v3
with:
name: exported-meshes
path: "*.msh"

0 comments on commit 66ec4f2

Please sign in to comment.