Exclude one auction which has faulty score data #1291
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: pull request | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Install Requirements | |
run: | |
pip install -r requirements.txt | |
- name: Pylint | |
run: | |
pylint src/ | |
- name: Black | |
run: | |
black --check ./ | |
- name: Type Check (mypy) | |
run: mypy src --strict | |
- name: Unit Tests | |
run: | |
python -m pytest tests/unit | |
env: | |
# We make a rinkeby request in one unit test | |
INFURA_KEY: ${{ secrets.INFURA_KEY }} | |
tenderly-ci: | |
name: Tenderly Lint & Tests | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: DB Migration | |
uses: joshuaavalon/[email protected] | |
with: | |
url: jdbc:postgresql://postgres:5432/postgres | |
user: postgres | |
password: postgres | |
env: | |
FLYWAY_LOCATIONS: filesystem:./internal_transfers/database/sql | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install Node.js dependencies | |
run: npm ci | |
working-directory: ./internal_transfers/actions | |
- name: ESLint | |
run: npm run lint | |
working-directory: ./internal_transfers/actions | |
- name: Tests | |
run: npm run test --silent | |
working-directory: ./internal_transfers/actions | |
env: | |
NODE_URL: ${{ secrets.NODE_URL }} |