Skip to content

Commit

Permalink
Merge pull request #44 from saibalmars/fix-github-action
Browse files Browse the repository at this point in the history
fix GitHub action
  • Loading branch information
saibalmars authored Jun 26, 2024
2 parents ebd6b6d + 832575b commit 3fcf12b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,32 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macOS-latest]
include:
- os: ubuntu-latest
- os: macos-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
- name: Install dependencies
shell: bash -l {0}
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda install -c conda-forge --file requirements.txt flake8 pytest
conda install -c conda-forge --file requirements.txt flake8 pytest
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if there are Python syntax errors or undefined names
$CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
$CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
$CONDA/bin/pytest
pytest
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cython
numpy
scipy>=1.0
scipy<=1.13.1
networkx>=2.0
pot>=0.8.0
packaging
Expand Down

0 comments on commit 3fcf12b

Please sign in to comment.