Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
if: ${{ github.base_ref == 'main' && github.head_ref == 'dev' }}
run: echo "MAX_EXAMPLES=50" >> "$GITHUB_ENV"

- name: Set env MAX_EXAMPLES to 3 if base branch is NOT main
- name: Set env MAX_EXAMPLES to 1 if base branch is NOT main
shell: bash
if: github.base_ref != 'main'
run: echo "MAX_EXAMPLES=3" >> "$GITHUB_ENV"
run: echo "MAX_EXAMPLES=1" >> "$GITHUB_ENV"

- name: Create env file
run: |
Expand Down Expand Up @@ -79,4 +79,10 @@ jobs:
run: brownie compile --size

- name: Run Tests
run: brownie test -vv -s --gas
run: brownie test -vv -s --gas --coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: reports/coverage.json