Commenting out snapshot report. Some reason it isn't respecting the o… #3
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: Prochloro memote tracking | |
on: | |
push: | |
branches: [ "main", "master"] | |
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 | |
- 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 "MEMOTE_LOCATION=results" >> $GITHUB_ENV | |
echo "MEMOTE_MODEL=prochlorococcus/prochlorococcus.xml" >> $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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Memote run | |
# run: | | |
# git checkout ${{ github.ref_name }} | |
# memote report snapshot --filename="${{ env.snapshot }}" | |
- 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/git-auto-commit-action@v4.4.0 | |
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 }} |