diff --git a/.github/workflows/test-python.yaml b/.github/workflows/test-python.yaml index 832a6604..68c4a419 100644 --- a/.github/workflows/test-python.yaml +++ b/.github/workflows/test-python.yaml @@ -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: | @@ -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