forked from fvutils/pyucis
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
45 lines (43 loc) · 1.24 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
name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
ci-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# - uses: actions/setup-python@v2
# with:
# python-version: '3.9'
- name: Configure Python
run: |
python3 -m pip install ivpm
python3 -m ivpm update -a
./packages/python/bin/python3 -m pip install wheel twine
./packages/python/bin/python3 -m pip install pip setuptools --upgrade
export BUILD_NUM=$GITHUB_RUN_ID
echo "BUILD_NUM=${BUILD_NUM}"
./packages/python/bin/python3 setup.py bdist_wheel --universal
- name: Run Tests
run: |
cd ve/unit
/bin/bash runtest.sh
- name: Build Docs
run: |
make html
touch doc/build/html/.nojekyll
cp -r doc/build/html .
- name: Publish Docs
if: startsWith(github.ref, 'refs/heads/master')
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: html
- name: Publish to PyPi
if: startsWith(github.ref, 'refs/heads/master')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}