fix: update workflow branch name, update tests/linter #2
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
sapphire-localnet-ci: | |
image: ghcr.io/oasisprotocol/sapphire-localnet | |
ports: | |
- 8544:8544 | |
- 8545:8545 | |
- 8546:8546 | |
env: | |
OASIS_DOCKER_START_EXPLORER: no | |
options: >- | |
--rm | |
--health-cmd="test -f /CONTAINER_READY" | |
--health-start-period=90s | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip3 install -r requirements.txt | |
- name: Lint code | |
run: | | |
flake8 src/ | |
flake8 main.py | |
- name: Run tests | |
run: | | |
pytest tests/ |