forked from grapheneX/grapheneX
-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (116 loc) · 3.41 KB
/
CI.yaml
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: CI workflow
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'docker/**'
- 'graphenex/**'
push:
branches:
- main
paths:
- 'docker/**'
- 'graphenex/**'
jobs:
setup_linux:
name: "Linux setup"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: update
run: |
sudo apt-get update
sudo apt-get upgrade
- name: 'install dependencies'
run: |
sudo apt install python3-pip
python -m pip install --upgrade pip
- name: 'install graphenex'
run: python3 -m pip install graphenex
- name: "python import issue workaround"
run: sed -i '/Mapping/s/collections/collections.abc/' ~/.local/lib/python3.10/site-packages/prompt_toolkit/styles/from_dict.py
- name: 'run graphenex'
run: python -m graphenex
linter_linux:
name: "Linter check linux"
runs-on: ubuntu-latest
needs: setup_linux
steps:
- name: checkout
uses: actions/checkout@v3
- name: 'flake8 python linter'
uses: py-actions/flake8@v2
setup_windows:
name: "Windows setup"
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: 'install python'
uses: actions/setup-python@v4
with:
python-version: '3.10.0'
cache: 'pip'
- name: 'update pip'
run: python -m pip install --upgrade pip
- name: 'install graphenex'
run: python3 -m pip install graphenex
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path D:\a\grapheneX\grapheneX\graphenex
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\rtools43
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\rtools43\usr
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\vcpkg
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\hostedtoolcache\windows\python\3.10.0\x64
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\hostedtoolcache\windows\python\3.10.0\x64\lib
Get-ChildItem
- name: 'testy'
shell: pwsh
run: |
Set-Location -Path C:\hostedtoolcache\windows\python\3.10.0\x64\lib\site-packages
Get-ChildItem
- name: 'python import issue workaround'
shell: pwsh
run: (Get-Content C:\Python310\Lib\site-packages\prompt_toolkit\styles\from_dict.py) -Replace 'from collections import Mapping', 'from collections.abc import Mapping' | Set-Content C:\Python310\Lib\site-packages\prompt_toolkit\styles\from_dict.py
- name: "pip update flask_socketio"
run: puthon3 -m pip install --upgrade flask_socketio
- name: 'run graphenex'
run: graphenex
linter_windows:
name: "Linter check windows"
runs-on: windows-latest
needs: setup_windows
steps:
- name: checkout
uses: actions/checkout@v3
- name: 'flake8 python linter'
uses: py-actions/flake8@v2