Merge pull request #333 from c4dt/update_serge #223
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 and test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run `prettier` | |
uses: actionsx/prettier@v2 | |
with: | |
args: --check . | |
- name: Run `pytest` | |
uses: fylein/python-pytest-github-action@v2 | |
with: | |
args: pip3 install -r requirements.txt && pytest |