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
69 changes: 13 additions & 56 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,19 @@
name: CI

on: [push]
on: [push, workflow_dispatch] # allow manual call

jobs:
build-and-test-linux:
get-branch:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
env: # update this if needed to match a pull request on the RMG-database
RMG_PY_BRANCH: main
defaults:
run:
shell: bash -l {0}
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- uses: actions/checkout@v2
- name: Get RMG-Py source code
run: |
cd ..
git clone -b $RMG_PY_BRANCH https://github.com/ReactionMechanismGenerator/RMG-Py.git
cd RMG-Py
git clone -b arkanepy3 https://github.com/mjohnson541/Q2DTor.git external/Q2DTor
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: ../RMG-Py/environment.yml
python-version: 3.7
activate-environment: rmg_env
- name: Conda info
run: |
conda info
conda list
- name: Install MOPAC
env:
MOPACKEY: ${{ secrets.MOPACKEY }}
timeout-minutes: 1
continue-on-error: true # allowed to fail on pull request from a forked repository
run: |
set +o pipefail
yes 'Yes' | ${CONDA_PREFIX}/bin/mopac "$MOPACKEY"
- name: Compile RMG
run: |
cd ../RMG-Py
make
- name: Trigger RMG-tests
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/stable' }} # only push events to branches other than main and stable
env:
GH_TOKEN: ${{ secrets.RMG_DEV_TOKEN }}
run: ./trigger-rmg-tests.sh
- name: Unit tests
run: |
cd ../RMG-Py
make test-unittests
- name: Functional tests
if: ${{ success() || failure() }} # Run even if the unit tests failed (but not if they were cancelled)
run: |
cd ../RMG-Py
make test-functional
- name: Database tests
if: ${{ success() || failure() }} # Run even if the functional tests failed (but not if they were cancelled)
run: |
cd ../RMG-Py
make test-database
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
rmg-py-ci:
needs: get-branch
uses: ReactionMechanismGenerator/RMG-Py/.github/workflows/CI.yml@main
with:
rmg-db-branch: ${{ needs.get-branch.outputs.branch }}
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

53 changes: 0 additions & 53 deletions trigger-rmg-tests.sh

This file was deleted.