Refactored tests #64
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python 3.10.4 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.4 | |
- uses: pre-commit/[email protected] | |
tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
strategy: | |
fail-fast: false | |
matrix: | |
name: | |
- token | |
- gauge | |
- pools/exchange | |
- pools/general | |
- pools/liquidity | |
- pools/meta | |
- pools/oracle | |
- factory | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Compiler Installations | |
uses: actions/cache@v3 | |
with: | |
path: ~/.vvm | |
key: compiler-cache | |
- name: Setup Python 3.10.4 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.4 | |
- name: Install Requirements | |
run: | | |
pip install poetry==1.8.3 | |
poetry config virtualenvs.in-project true | |
poetry install --no-interaction --without dev | |
- name: Run Tests | |
env: | |
WEB3_PROVIDER_URL: ${{ secrets.WEB3_PROVIDER_URL }} | |
run: | | |
source .venv/bin/activate | |
if [[ ${{ matrix.name }} == "pools/oracle" ]]; then | |
pytest --numprocesses=auto --dist=loadscope tests/${{ matrix.name }}/ | |
else | |
pytest --numprocesses=auto tests/${{ matrix.name }}/ | |
fi |