Skip to content

ci: version bump to 0.7.0 #186

ci: version bump to 0.7.0

ci: version bump to 0.7.0 #186

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 -c anaconda pylint astroid
# 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