-
Notifications
You must be signed in to change notification settings - Fork 2
120 lines (111 loc) · 3.63 KB
/
check_pre-merge_sprint.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: sprint pre-merge check
on:
push:
branches:
- features/sprint*
paths-ignore:
- '.github/workflows/create_release-and-upload.yml'
- '.github/workflows/code_scanner.yml'
- 'README.md'
pull_request:
branches:
- features/sprint*
env:
GITHUB_VERSION: v0.0.10
GITHUB_BITCOIN_VERSION: v0.0.10
DOCKER_PYTHON_VERSION: 3.7
GITHUB_DOCKER_IMAGE: docker.pkg.github.com/cryptogarageinc/elements-testing-dockerfile/elements-testing
ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_entrypoint.sh
BITCOIN_ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_bitcoin_entrypoint.sh
jobs:
build-and-test:
name: build & test
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-10.15, windows-2019, ubuntu-18.04]
py-ver: [3.6, 3.7, 3.8, 3.9, pypy3]
exclude:
- os: macos-10.15
py-ver: 3.6
- os: macos-10.15
py-ver: 3.7
- os: macos-10.15
py-ver: 3.8
- os: windows-2019
py-ver: 3.6
- os: windows-2019
py-ver: pypy3
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: build
run: python setup.py build
- name: copy dll
if: runner.os == 'Windows' && matrix.py-ver == '3.7'
run: |
cp ./cmake_build/Release/*.dll ./cfd/
echo "$GITHUB_WORKSPACE/cfd" >> $GITHUB_PATH
shell: bash
- name: test
run: python -m unittest discover -v tests
elements-e2e-test:
timeout-minutes: 20
name: elements e2e test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.DOCKER_PYTHON_VERSION }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install pip
run: python -m pip install -U pip
- name: create wheel
run: pip wheel .
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
docker pull ${{ env.GITHUB_DOCKER_IMAGE }}:${{ env.GITHUB_VERSION }}
docker run -v ${{ github.workspace }}:/github/workspace --entrypoint ${{ env.ENTRYPOINT_PATH }} ${{ env.GITHUB_DOCKER_IMAGE }}:${{ env.GITHUB_VERSION }}
bitcoin-e2e-test:
timeout-minutes: 20
name: bitcoin e2e test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.DOCKER_PYTHON_VERSION }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install pip
run: python -m pip install -U pip
- name: create wheel
run: pip wheel .
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
docker pull ${{ env.GITHUB_DOCKER_IMAGE }}:${{ env.GITHUB_BITCOIN_VERSION }}
docker run -v ${{ github.workspace }}:/github/workspace --entrypoint ${{ env.BITCOIN_ENTRYPOINT_PATH }} ${{ env.GITHUB_DOCKER_IMAGE }}:${{ env.GITHUB_BITCOIN_VERSION }}
doxygen-ubuntu:
name: doxygen-ubuntu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install_doxygen
run: sudo apt install doxygen graphviz
- name: doxygen_check
run: |
cd doc
doxygen Doxyfile_quiet_all