Skip to content

Commit 3fcf12b

Browse files
authored
Merge pull request #44 from saibalmars/fix-github-action
fix GitHub action
2 parents ebd6b6d + 832575b commit 3fcf12b

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,32 @@ on:
1313

1414
jobs:
1515
build:
16-
1716
runs-on: ${{ matrix.os }}
1817
strategy:
1918
fail-fast: false
2019
matrix:
21-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
20+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
2221
os: [ubuntu-latest, macOS-latest]
2322
include:
2423
- os: ubuntu-latest
2524
- os: macos-latest
2625

2726
steps:
2827
- uses: actions/checkout@v2
29-
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v2
28+
- uses: conda-incubator/setup-miniconda@v2
3129
with:
3230
python-version: ${{ matrix.python-version }}
31+
miniconda-version: "latest"
3332
- name: Install dependencies
33+
shell: bash -l {0}
3434
run: |
35-
# $CONDA is an environment variable pointing to the root of the miniconda directory
36-
$CONDA/bin/conda install -c conda-forge --file requirements.txt flake8 pytest
35+
conda install -c conda-forge --file requirements.txt flake8 pytest
3736
- name: Lint with flake8
37+
shell: bash -l {0}
3838
run: |
39-
# stop the build if there are Python syntax errors or undefined names
40-
$CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
41-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
42-
$CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4341
- name: Test with pytest
42+
shell: bash -l {0}
4443
run: |
45-
$CONDA/bin/pytest
44+
pytest

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cython
22
numpy
3-
scipy>=1.0
3+
scipy<=1.13.1
44
networkx>=2.0
55
pot>=0.8.0
66
packaging

0 commit comments

Comments
 (0)