Skip to content

build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /apis #398

build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /apis

build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /apis #398

name: Data sources test
# Data sources test runs Python tests all over the data sources code.
# This workflow is run on every pull request and push to main.
on:
pull_request:
push:
branches:
- main
- mainnet
defaults:
run:
working-directory: data-sources
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Compute diff 📜
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.py
requirements.txt
- name: Set up Python 🧰
if: env.GIT_DIFF
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies 📥
if: env.GIT_DIFF
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run lint ✅
if: env.GIT_DIFF
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests 🧪
if: env.GIT_DIFF
run: |
python -m pytest