default #95
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: default | |
on: | |
# Trigger the workflow on certain events | |
pull_request: | |
# Enable manual triggering from the Actions tab | |
workflow_dispatch: | |
# Trigger the workflow every Saturday at 17:00 UTC | |
schedule: | |
- cron: "0 17 * * 6" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup virtual environment | |
run: | | |
cd /home/runner/work | |
python3 -m venv psyacc-ci | |
- name: Install PSyclone | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
cd /home/runner/work | |
git clone https://github.com/stfc/PSyclone.git | |
cd PSyclone | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install . | |
- name: Install PSyACC | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
make install | |
./set_default_config.sh | |
- name: Test linting | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
make lint | |
- name: Test codestyle | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
make codestyle | |
- name: Test PSyACC | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
python3 -m pytest -v --cov-reset --cov=psyacc -v test | |
- name: Build docs | |
run: | | |
source /home/runner/work/psyacc-ci/bin/activate | |
make docs |