Skip to content

Commit

Permalink
fixing the versions of dependencies for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seperman committed Jun 18, 2024
1 parent 281312e commit e603cd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,26 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
architecture: ["x64"]
include:
- python-version: "3.8"
numpy-version: "1.26.4"
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Cache pip 3.8
if: matrix.python-version == 3.8
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev3.8.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Cache pip
if: matrix.python-version != 3.8
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
Expand All @@ -40,10 +49,11 @@ jobs:
# workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
pip install --upgrade setuptools
- name: Install dependencies
if: matrix.python-version != 3.8
run: pip install -r requirements-dev.txt
- name: Install Numpy Old
if: ${{ matrix.numpy-version }}
run: pip install -I --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy>=0.0.dev0"
- name: Install dependencies
if: matrix.python-version == 3.8
run: pip install -r requirements-dev3.8.txt
- name: Lint with flake8
if: matrix.python-version == 3.12
run: |
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ pytest==8.2.2
pytest-cov==5.0.0
python-dotenv==1.0.1
watchdog>=4.0.1
Sphinx==7.3.7 # We use the html style that is not supported in Sphinx 7 anymore.
Sphinx==6.2.1 # We use the html style that is not supported in Sphinx 7 anymore.
sphinx-sitemap==2.6.0
sphinxemoji>=0.3.1
sphinxemoji==0.2.0
flake8==7.1.0
python-dateutil==2.9.0.post0
orjson==3.10.5
Expand Down

0 comments on commit e603cd3

Please sign in to comment.