File tree Expand file tree Collapse file tree 2 files changed +76
-0
lines changed
Expand file tree Collapse file tree 2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI deploy package
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ with :
17+ persist-credentials : false
18+
19+ - name : Install python
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : ' 3.8'
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install -r requirements.txt
28+ pip install .
29+
30+ - name : Build package
31+ run : |
32+ pip install wheel
33+ python setup.py sdist bdist_wheel
34+
35+ - uses : actions/upload-artifact@v2
36+ with :
37+ name : DoubleML-Serverless-pkg
38+ path : dist/
Original file line number Diff line number Diff line change 1+ # Workflow based on https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml
2+
3+ name : build
4+
5+ on :
6+ push :
7+ branches :
8+ - master
9+ pull_request :
10+ branches :
11+ - master
12+ schedule :
13+ - cron : " 0 9 * * 1"
14+ workflow_dispatch :
15+
16+ jobs :
17+ build :
18+
19+ runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ python-version : ['3.6', '3.7', '3.8', '3.9']
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ - name : Set up Python ${{ matrix.python-version }}
27+ uses : actions/setup-python@v2
28+ with :
29+ python-version : ${{ matrix.python-version }}
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ python -m pip install pytest
34+ pip install -r requirements.txt
35+ pip install .
36+ - name : Test with pytest
37+ run : |
38+ pytest -m ci
You can’t perform that action at this time.
0 commit comments