Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Test suite
on:
# Trigger the workflow on certain events
pull_request:
branches:
- "main"
push:
branches:
- "main"

# Enable manual triggering from the Actions tab
workflow_dispatch:
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/test_suite_psyclone_v3.1.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test suite

on:
# Trigger the workflow on certain events
pull_request:
branches:
- "psyclone-3.1.0"
push:
branches:
- "psyclone-3.1.0"

# Enable manual triggering from the Actions tab
workflow_dispatch:

# Trigger the workflow every Saturday at 17:00 UTC
schedule:
- cron: "0 17 * * 6"

jobs:

test_suite:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup virtual environment
run: |
cd /home/runner/work
python3 -m venv psytran-ci

- name: Install PSyclone v3.1.0
run: |
source /home/runner/work/psytran-ci/bin/activate
cd /home/runner/work
git clone -b v3.1.0 --single-branch https://github.com/stfc/PSyclone.git PSyclone
cd PSyclone
python3 -m pip install -r requirements.txt
python3 -m pip install -e .

- name: Install PSyTran
run: |
source /home/runner/work/psytran-ci/bin/activate
make install_dev
./set_default_config.sh

- name: Test linting
run: |
source /home/runner/work/psytran-ci/bin/activate
make lint

- name: Test codestyle
run: |
source /home/runner/work/psytran-ci/bin/activate
make codestyle

- name: PSyTran unit tests
run: |
source /home/runner/work/psytran-ci/bin/activate
python3 -m pytest -v --cov-reset --cov=psytran -v test

- name: PSyTran integration tests
run: |
source /home/runner/work/psytran-ci/bin/activate
cd demos
make run
make clean

- name: Build docs
run: |
source /home/runner/work/psytran-ci/bin/activate
make docs
1 change: 1 addition & 0 deletions psytran/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def apply_parallel_directive(block, directive_cls, options=None):
"""
if options is None:
options = {}
print("hello")
if not isinstance(options, dict):
raise TypeError(f"Expected a dict, not '{type(options)}'.")
directive_cls().apply(block, options=options)
Expand Down