Skip to content

Adding Workflow to run Integration Tests #12

Adding Workflow to run Integration Tests

Adding Workflow to run Integration Tests #12

name : Integration Tests
on :
# allow manual triggering
workflow_dispatch:
# for debugging
push:
pull_request:
schedule:
# run Thursday 4:30 AM UTC
- cron: '30 4 * * 4'
jobs:
test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
container:
image: pecan/base:develop
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install cdsapi
- name: Run tests
run: |
for FILE in modules/data.atmosphere/inst/integrationTests/*; do
Rscript $FILE;
done