Skip to content

fix: update python=3.8.6 -> python=3.10 to fix numpy & pandas conflict #150

fix: update python=3.8.6 -> python=3.10 to fix numpy & pandas conflict

fix: update python=3.8.6 -> python=3.10 to fix numpy & pandas conflict #150

name: Python Package using Conda
on: [ pull_request ]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12.3
uses: actions/setup-python@v2
with:
python-version: 3.12.3
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env create -f scar-cpu.yml
- name: Run binary
run: |
export PATH="$GITHUB_PATH:$PATH"
source activate scar
scar --help
- name: Run pylint
run: |
export PATH="$GITHUB_PATH:$PATH"
source activate scar
conda install pylint
pylint scar --fail-under 8.5 --disable=R,C --generated-members=torch.*
- name: Run unit tests
run: |
export PATH="$GITHUB_PATH:$PATH"
source activate scar
conda install pytest
pytest scar