-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (57 loc) · 1.95 KB
/
pt17_cu101_manual.yml
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
55
56
57
58
name: Manual Build pytorch1.7 cuda10.1
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test pytorch1.7 cuda10.1 build'
workflow_run:
workflows: ['Trigger Builds']
types:
- completed
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
ginjinn-distribution: [ginjinn-gpu-pt17_cu101_linux]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
name: Python ${{ matrix.python-version }} example
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge, pytorch
- run: conda --version
- run: which python
- name: Install dependencies
run: |
conda install pytest conda-build anaconda-client pip pytest-cov
- name: Build and publish GinJinn
run: |
conda config --set anaconda_upload yes
conda-build conda.recipe/${{ matrix.ginjinn-distribution }} --token ${{ secrets.ANACONDA_TOKEN }} --user AGOberprieler --variants "{'python': ['${{ matrix.python-version }}']}" --label nightly
- name: Install GinJinn from Anaconda cloud
run: conda install -c conda-forge -c pytorch -c agoberprieler/label/nightly ginjinn-gpu_development pytorch=1.7.0 cudatoolkit=10.1
- name: Test with pytest
run: |
pytest --cov=./ginjinn/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true