Skip to content

Remove unneeded files #38

Remove unneeded files

Remove unneeded files #38

Workflow file for this run

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 }}
git stash "${{ env.snapshot }}"
git checkout gh-pages
git stash pop
- 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 }}