Adding disclaimer #41
This file contains 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: SYN memote tracking | |
on: | |
push: | |
branches: [ "main", "add_missing_rxns"] | |
jobs: | |
memote-history: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout model | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout concerto | |
uses: actions/checkout@v2 | |
with: | |
repository: PNNL-CompBio/CONCERTO | |
path: 'concerto_path' | |
- name: Set up Python 3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10.6' | |
- name: Install memote | |
run: pip install memote cobra pytest~=7.0 | |
- name: Setup variables | |
id: setup | |
run: | | |
echo "snapshot=snapshot_report.html" >> $GITHUB_ENV | |
echo "history=history_report.html" >> $GITHUB_ENV | |
echo "deployment=gh-pages" >> $GITHUB_ENV | |
echo "custom_tests=syn_elong/custom_tests" >> $GITHUB_ENV | |
echo "MEMOTE_LOCATION=results" >> $GITHUB_ENV | |
echo "PYTHONPATH=$PYTHONPATH:concerto_path" >> $GITHUB_ENV | |
- name: Memote short run | |
run: | | |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global user.name "${GITHUB_ACTOR}" | |
git checkout gh-pages | |
git checkout ${{ github.ref_name }} | |
memote run --custom-tests=${{ env.custom_tests }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Compute Memote history on push | |
run: | | |
git checkout gh-pages | |
# Generate the history report on the deployment branch | |
memote report history --filename="${{ env.history }}" | |
- name: Auto-commit results | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_user_name: memote-bot | |
commit_message: "chore: update memote history report" | |
file_pattern: "*_report.html" | |
branch: gh-pages | |
repository: . | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Memote run | |
run: | | |
git checkout ${{ github.ref_name }} | |
memote report snapshot \ | |
--filename="${{ env.snapshot }}" \ | |
--custom-tests=${{ env.custom_tests }} | |
mv ${{ env.snapshot }} tmp.html | |
git checkout gh-pages | |
mv tmp.html ${{ env.snapshot }} | |
- name: Auto-commit results | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_user_name: memote-bot | |
commit_message: "chore: update memote history report" | |
file_pattern: "*_report.html" | |
branch: gh-pages | |
repository: . | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |