Skip to content

Commit

Permalink
Update pytests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Jan 10, 2024
1 parent 39791cc commit 208b9e8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: start-measurement
continue-on-error: false
continue-on-error: true

- uses: actions/checkout@v4

Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
with:
task: get-measurement
label: 'setup core-pinned'
continue-on-error: false
continue-on-error: true

- name: Lint with flake8
run: |
Expand All @@ -111,7 +111,7 @@ jobs:
with:
task: get-measurement
label: 'pytest core-pinned'
continue-on-error: false
continue-on-error: true

- name: Upload coverage to Codecov
uses: codecov/[email protected]
Expand All @@ -135,7 +135,7 @@ jobs:
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: display-results
continue-on-error: false
continue-on-error: true

all-pinned:
# CI tests for environments with all requirements in pinned versions
Expand All @@ -155,12 +155,12 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8"]
# os: ["ubuntu-latest"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
experimental: [false]

steps:
- name: Energy Estimation - Initialize
if: ${{matrix.os == 'ubuntu-latest'}}
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: start-measurement
Expand Down Expand Up @@ -195,6 +195,7 @@ jobs:
micromamba list
- name: Energy Estimation - Measure Tests Setup
if: ${{matrix.os == 'ubuntu-latest'}}
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: get-measurement
Expand All @@ -211,6 +212,7 @@ jobs:
pytest -ra -v -s -c argopy/tests/pytest.ini --durations=10 --cov=./ --cov-config=.coveragerc --cov-report xml:cov.xml --cov-report term-missing --log-file=${{env.LOG_FILE}}
- name: Energy Estimation - Measure Tests Exec
if: ${{matrix.os == 'ubuntu-latest'}}
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: get-measurement
Expand All @@ -235,6 +237,7 @@ jobs:
retention-days: 90

- name: Energy Estimation - Show Results
if: ${{matrix.os == 'ubuntu-latest'}}
uses: green-coding-berlin/eco-ci-energy-estimation@v2
with:
task: display-results
Expand Down

0 comments on commit 208b9e8

Please sign in to comment.