Skip to content

Commit

Permalink
Merge pull request #3213 from meetagrawal09/ci-integrationtests
Browse files Browse the repository at this point in the history
Adding Workflow to run Integration Tests
  • Loading branch information
mdietze authored Jan 18, 2024
2 parents ea5fc6b + 015b9a4 commit 45d1045
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name : Integration Tests
on :
# allow manual triggering
workflow_dispatch:

schedule:
# run Thursday 4:30 AM UTC
- cron: '30 4 * * 4'
jobs:
test:
runs-on: ubuntu-20.04

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

container:
image: pecan/base:develop

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Run tests
run: |
for FILE in modules/data.atmosphere/inst/integrationTests/*; do
if echo "$FILE" | grep -q "ERA5"; then
echo "Skipping file : $FILE"
else
Rscript "$FILE"
fi
done

0 comments on commit 45d1045

Please sign in to comment.