Skip to content

Commit e603cd3

Browse files
committed
fixing the versions of dependencies for github actions
1 parent 281312e commit e603cd3

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/main.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ jobs:
1414
matrix:
1515
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1616
architecture: ["x64"]
17-
include:
18-
- python-version: "3.8"
19-
numpy-version: "1.26.4"
2017
steps:
2118
- uses: actions/checkout@v2
2219
- name: Setup Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
2320
uses: actions/setup-python@v2
2421
with:
2522
python-version: ${{ matrix.python-version }}
2623
architecture: ${{ matrix.architecture }}
24+
- name: Cache pip 3.8
25+
if: matrix.python-version == 3.8
26+
uses: actions/cache@v2
27+
with:
28+
# This path is specific to Ubuntu
29+
path: ~/.cache/pip
30+
# Look to see if there is a cache hit for the corresponding requirements file
31+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev3.8.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-
34+
${{ runner.os }}-
2735
- name: Cache pip
36+
if: matrix.python-version != 3.8
2837
uses: actions/cache@v2
2938
with:
3039
# This path is specific to Ubuntu
@@ -40,10 +49,11 @@ jobs:
4049
# workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
4150
pip install --upgrade setuptools
4251
- name: Install dependencies
52+
if: matrix.python-version != 3.8
4353
run: pip install -r requirements-dev.txt
44-
- name: Install Numpy Old
45-
if: ${{ matrix.numpy-version }}
46-
run: pip install -I --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy>=0.0.dev0"
54+
- name: Install dependencies
55+
if: matrix.python-version == 3.8
56+
run: pip install -r requirements-dev3.8.txt
4757
- name: Lint with flake8
4858
if: matrix.python-version == 3.12
4959
run: |

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ pytest==8.2.2
99
pytest-cov==5.0.0
1010
python-dotenv==1.0.1
1111
watchdog>=4.0.1
12-
Sphinx==7.3.7 # We use the html style that is not supported in Sphinx 7 anymore.
12+
Sphinx==6.2.1 # We use the html style that is not supported in Sphinx 7 anymore.
1313
sphinx-sitemap==2.6.0
14-
sphinxemoji>=0.3.1
14+
sphinxemoji==0.2.0
1515
flake8==7.1.0
1616
python-dateutil==2.9.0.post0
1717
orjson==3.10.5

0 commit comments

Comments
 (0)