Skip to content

Commit

Permalink
Added CI using Github Actions
Browse files Browse the repository at this point in the history
unit-tests.yml - runs unit tests for each modules
integration-tests.yml - runs integration tests, which effectively checks the overall workflow of the code in solving PDE from top to bottom
  • Loading branch information
thivinanandh committed Apr 23, 2024
1 parent 12996d2 commit 2ec5279
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Integration tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Run integration tests
run: |
. venv/bin/activate
python -m pytest -v tests/integration
31 changes: 31 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Unit tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Run unit tests
run: |
. venv/bin/activate
python -m pytest -v tests/unit

0 comments on commit 2ec5279

Please sign in to comment.