Bump @openzeppelin/contracts in /bancor_research/bancor_emulator/tests #745
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: Lint | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install Black | |
run: pip install black | |
- name: Install Black Jupyter | |
run: pip install jupyter-black | |
- name: Run black --check bancor_research/bancor_simulator | |
run: black --check bancor_research/bancor_simulator | |
- name: If needed, commit black changes to the pull request | |
if: failure() | |
run: | | |
black bancor_research/bancor_simulator | |
git config --global user.name 'mikewcasale' | |
git remote set-url origin https://x-access-token:${{ secrets.GIT_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git checkout $GITHUB_HEAD_REF | |
git commit -am "fixup: Format Python code with Black" | |
git push |