-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (51 loc) · 1.5 KB
/
test_python.yml
File metadata and controls
54 lines (51 loc) · 1.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Python tests
on:
push:
branches: [master]
jobs:
test-cpp:
runs-on: "ubuntu-latest"
name: Test python code
#shell: bash -l {0}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: pyssm
environment-file: environment.yml
- name: Test Python code
run: |
cd tests
./main.py
# test-python:
# runs-on: "ubuntu-latest"
# name: Prepare conda environment and test python interface
# #shell: bash -l {0}
# defaults:
# run:
# shell: bash -l {0}
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# miniconda-version: "latest"
# activate-environment: pyssm
# environment-file: environment.yml
# - run: |
# cd tests
# ./main.py
# - name: Commit files # transfer the new html files back into the repository
# run: |
# git config --local user.name "sbuschjaeger"
# git add PyPruning/tests/accuracy_digits.csv
# git commit -m "Added latest accuracy on digits to repository"
# - name: Push changes # push the output folder to your repo
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}