Skip to content

Merge pull request #181 from tellor-io/release-v2.0.3 #254

Merge pull request #181 from tellor-io/release-v2.0.3

Merge pull request #181 from tellor-io/release-v2.0.3 #254

Workflow file for this run

---
name: CI
on:
push:
branches: ["dvm-main", "auto-disputer-main", "main"]
pull_request:
branches: ["dvm-main", "auto-disputer-main", "main"]
workflow_dispatch:
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
env:
USING_COVERAGE: '3.9'
NODE_URL: ${{ secrets.NODE_URL }}
MAINNET_URL: ${{ secrets.MAINNET_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
strategy:
matrix:
python-version: ["3.9"]
poetry-version: ["1.8.3"]
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: |
apt-get update && apt-get install -y npm
npm install -g ganache-cli
poetry env use 3.9 && poetry install
pip freeze
- name: Start Ganache
run: nohup ganache-cli --fork ${{ secrets.MAINNET_URL }}@18581106 -l 3000000000 -d -p 8545 -u 0x39e419ba25196794b595b2a595ea8e527ddc9856 &
- name: "Run poetry pytest for ${{ matrix.python-version }}"
run:
poetry run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2