forked from grapheneX/grapheneX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'grapheneX:master' into master
- Loading branch information
Showing
5 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- "docker/**" | ||
- "graphenex/**" | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "docker/**" | ||
- "graphenex/**" | ||
|
||
jobs: | ||
linter: | ||
name: "Linter check" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: "flake8 python linter" | ||
uses: py-actions/flake8@v2 | ||
|
||
setup_linux: | ||
name: "Linux setup" | ||
runs-on: ubuntu-latest | ||
#needs: linter | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: "install dependencies" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
--no-install-recommends \ | ||
--allow-unauthenticated python3-pip | ||
- name: "install grapheneX" | ||
run: | | ||
python3 -m pip install poetry | ||
poetry install | ||
- name: "python import issue workaround" | ||
run: | | ||
sed -i '/Mapping/s/collections/collections.abc/' \ | ||
/home/runner/.cache/pypoetry/virtualenvs/graphenex--sEiZHBC-py3.10/lib/python3.10/site-packages/prompt_toolkit/styles/from_dict.py | ||
- name: "run grapheneX" | ||
run: poetry run grapheneX | ||
|
||
setup_windows: | ||
name: "Windows setup" | ||
runs-on: windows-latest | ||
#needs: linter | ||
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 poetry | ||
poetry install | ||
- name: "python import issue workaround" | ||
shell: pwsh | ||
run: (Get-Content C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\graphenex-6fD1lE0z-py3.10\lib\site-packages\prompt_toolkit\styles\from_dict.py) -Replace 'from collections import Mapping', 'from collections.abc import Mapping' | Set-Content C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\graphenex-6fD1lE0z-py3.10\lib\site-packages\prompt_toolkit\styles\from_dict.py | ||
|
||
- name: "pip update flask_socketio" | ||
run: python3 -m pip install --upgrade flask_socketio | ||
|
||
- name: "run grapheneX" | ||
run: poetry run grapheneX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters