Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshrinet committed Apr 28, 2024
1 parent e2844c2 commit cfd6c83
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 30 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
@@ -1,27 +1,27 @@
name: CI

on: [push, pull_request]
on: [push]

jobs:
build:

runs-on: ubuntu-latest

build-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v4
with:
python-version: 3.7
architecture: x64
- name: Print version
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'

- name: Display Python version
run: python -c "import sys; print(sys.version)"


- name: Install dependencies
run: python -m pip install -r requirements.txt

Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/run_notebooks.yml
@@ -1,23 +1,27 @@
name: notebooks

on: [push, pull_request]

on: [push]

jobs:
build-and-test:
name: check examples
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v4
with:
python-version: 3.7
architecture: x64
- name: Print version
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'

- name: Display Python version
run: python -c "import sys; print(sys.version)"


- name: Install dependencies
run: cd tests && python -m pip install -r test_req.txt

Expand Down
10 changes: 5 additions & 5 deletions tests/test_notebooks.py
Expand Up @@ -93,11 +93,11 @@ def export_notebook(ipath, opath):
os.chdir('../examples/')
cwd =os.getcwd()

path1 = cwd+'/ex1-unboundedFlow.ipynb'
path2 = cwd+'/ex2-flowPlaneSurface.ipynb'
path3 = cwd+'/ex5-phoreticField.ipynb'
path4 = cwd+'/ex8-holographicTrap.ipynb'
path5 = cwd+'/ex3-crystalNucleation.ipynb'
path1 = cwd+'/ex01-unboundedFlow.ipynb'
path2 = cwd+'/ex02-flowPlaneSurface.ipynb'
path5 = cwd+'/ex03-crystalNucleation.ipynb'
path3 = cwd+'/ex05-phoreticField.ipynb'
path4 = cwd+'/ex08-holographicTrap.ipynb'
test_notebook(path1)
test_notebook(path2)
test_notebook(path3)
Expand Down

0 comments on commit cfd6c83

Please sign in to comment.