-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.13 KB
/
python-conda-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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