Skip to content

Commit

Permalink
Run our tests for external PRs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Jun 19, 2024
1 parent 1d2728f commit a92a7e7
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ name: Run tests
on:
push:
paths-ignore:
- '**.md'
- '.gitignore'
- "**.md"
- ".gitignore"
# make our tests run when we have external PRs
pull_request:
paths-ignore:
- "**.md"
- ".gitignore"

defaults:
run:
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
uses: green-coding-solutions/eco-ci-energy-estimation@v4.0-rc3
with:
task: get-measurement
label: 'checkout'
label: "checkout"
continue-on-error: true

- name: Use Python ${{ matrix.python-version }}
Expand All @@ -66,7 +71,7 @@ jobs:
uses: green-coding-solutions/eco-ci-energy-estimation@v4.0-rc3
with:
task: get-measurement
label: 'setup-python'
label: "setup-python"
continue-on-error: true

- name: Install tooling for managing dependencies
Expand All @@ -76,7 +81,7 @@ jobs:
uses: green-coding-solutions/eco-ci-energy-estimation@v4.0-rc3
with:
task: get-measurement
label: 'pip install uv wheel'
label: "pip install uv wheel"
continue-on-error: true

# - name: Set up a cache-key for installations of dependencies, in .venv
Expand All @@ -97,7 +102,7 @@ jobs:
uses: green-coding-solutions/eco-ci-energy-estimation@v4.0-rc3
with:
task: get-measurement
label: 'pip install requirements'
label: "pip install requirements"
continue-on-error: true

- name: Run tests
Expand All @@ -124,7 +129,7 @@ jobs:
uses: green-coding-solutions/eco-ci-energy-estimation@v4.0-rc3
with:
task: get-measurement
label: 'pytest'
label: "pytest"
continue-on-error: true

- name: Eco CI Energy Estimation - End Measurement
Expand Down

0 comments on commit a92a7e7

Please sign in to comment.