Skip to content

Commit

Permalink
Rewrote workslows to remove conda
Browse files Browse the repository at this point in the history
  • Loading branch information
ddrous committed Apr 4, 2024
1 parent 0ff7cb2 commit aa5466e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/updec-linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Updec CI/CD

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file scripts/env_workflows.yaml --name base
- name: Install Updec & Pytest
run: |
python setup.py develop && conda install pytest
- name: Run differential operators test
run: |
pytest --disable-warnings -q updec/tests/operators.py
- name: Run cloud interpolation test
run: |
pytest --disable-warnings -q updec/tests/interpolation.py
- name: Run outward normals test
run: |
pytest --disable-warnings -q updec/tests/normals.py

8 changes: 1 addition & 7 deletions .github/workflows/updec-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file scripts/env_workflows.yaml --name base
- name: Install Updec & Pytest
run: |
python setup.py develop && conda install pytest
pip install --upgrade pip && pip install --upgrade "jax[cpu]" && python setup.py develop
- name: Run differential operators test
run: |
pytest --disable-warnings -q updec/tests/operators.py
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
description='A package for meshless and data-driven PDE modelling and control',
long_description=open('README.md', encoding="utf-8").read(),
install_requires=[
"scikit-learn",
"jax >= 0.3.4",
"pytest",
"gmsh",
"matplotlib>=3.4.0",
],
)

0 comments on commit aa5466e

Please sign in to comment.