Skip to content

Commit b7e0953

Browse files
committed
update workflow
1 parent ce04abe commit b7e0953

1 file changed

Lines changed: 32 additions & 24 deletions

File tree

.github/workflows/regression_test-python.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,36 @@ name: Regression Test - Python
33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
build:
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
os: ["ubuntu-22.04"]
6+
test-regression-python:
7+
runs-on: ubuntu-22.04
8+
timeout-minutes: 30
9+
1210
steps:
13-
- uses: actions/checkout@v3
14-
- name: Set up python 3.11
15-
uses: actions/setup-python@v3
16-
with:
17-
python-version: "3.11"
18-
- name: debug
19-
run: |
20-
pwd
21-
ls
22-
- uses: mpi4py/setup-mpi@v1
23-
- name: Install dependencies
24-
run: |
25-
pip install -e .
26-
pip list
27-
- name: Regression Test - Python
28-
run: |
29-
cd test/regression
30-
python run.py
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up python 3.11
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
cache: pip
19+
20+
- name: Show environment info
21+
run: |
22+
pwd
23+
ls
24+
python --version
25+
pip --version
26+
27+
- name: Set up MPI
28+
uses: mpi4py/setup-mpi@v1
29+
30+
- name: Install MC/DC
31+
run: |
32+
pip install --upgrade pip
33+
pip install -e .
34+
pip list
35+
36+
- name: Run Python regression tests
37+
working-directory: test/regression
38+
run: python run.py

0 commit comments

Comments
 (0)