Skip to content

Commit 16a3cd8

Browse files
authored
Reorganize CI workflow to install dependencies
1 parent 79eac85 commit 16a3cd8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ['3.9', '3.10', '3.11', '3.12.1']
22+
python-version: ['3.9', '3.10', '3.11', '3.12']
2323
backend: ['tensorflow', 'jax', 'pytorch', 'paddle']
2424

2525
steps:
@@ -28,12 +28,6 @@ jobs:
2828
uses: actions/setup-python@v3
2929
with:
3030
python-version: ${{ matrix.python-version }}
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
python -m pip install flake8 pytest pytest-cov
35-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36-
python -m pip install git+https://github.com/lululxvi/deepxde.git
3731
- name: Install tensorflow
3832
if: ${{matrix.backend == 'tensorflow'}}
3933
run: |
@@ -50,6 +44,12 @@ jobs:
5044
if: ${{matrix.backend == 'paddle'}}
5145
run: |
5246
python -m pip install paddlepaddle
47+
- name: Install dependencies
48+
run: |
49+
python -m pip install --upgrade pip
50+
python -m pip install flake8 pytest pytest-cov
51+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
52+
python -m pip install git+https://github.com/lululxvi/deepxde.git
5353
- name: Lint with flake8
5454
run: |
5555
# stop the build if there are Python syntax errors or undefined names

0 commit comments

Comments
 (0)