Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.7, 3.8]
config: [Debug, Release]
python-version: [3.9]
config: [Release]
include:
- os: ubuntu-latest
name: Linux
Expand All @@ -24,7 +24,7 @@ jobs:
USE_CHOLMOD: 0
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.1.6
with:
fetch-depth: 10

Expand All @@ -41,7 +41,9 @@ jobs:

- name: Install Dependencies
run: |
conda install numpy libblas libcblas suitesparse plotly -y
# conda install numpy libblas libcblas suitesparse plotly -y
conda install numpy scipy conda-forge::cython pytorch::pytorch -y
pip install --no-binary=pyzmq pyzmq

- name: Envs (Windows)
if: runner.os == 'Windows'
Expand All @@ -52,16 +54,11 @@ jobs:
echo "USE_CHOLMOD=0" >> $GITHUB_ENV
conda init powershell

- name: Build (Debug)
if: matrix.config == 'Debug'
run: |
python setup.py build --debug install

# windows has problem with memory and 2 passes...
- name: Build (Release)
if: matrix.config == 'Release' && runner.os != 'Windows'
run: |
python setup.py build install
pip install . -v

# macos segfaults???
- name: Tests
Expand Down
4 changes: 2 additions & 2 deletions test/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# %%
import polyfempy as pf
import json
import json, os
import numpy as np

# %%
root = "../data/differentiable/input"
root = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../data/differentiable/input")
with open(root + "/initial-contact.json", "r") as f:
config = json.load(f)

Expand Down
Loading