296 Add memory usage to PyOPIA log output #922
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: Version check | |
on: [pull_request] | |
env: | |
IMAGE_NAME: sintef/pyopia | |
IMAGE_TAG: github-ci | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Diff | |
id: main | |
run: | | |
check=$(git diff origin/main -- pyopia/__init__.py | grep __version | wc -l) && | |
echo "::set-output name=check::$check" | |
- name: Check | |
if: steps.main.outputs.check != 2 | |
run: | | |
echo "__init__.py is unchanged" | |
exit 1 | |