Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI workflow #149

Merged
merged 44 commits into from
Sep 22, 2023
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ca14772
github_CI_workflow
KacperNapierski Sep 13, 2023
152c2fc
Merge pull request #1 from KacperNapierski/github_workflows
KacperNapierski Sep 13, 2023
c7814a7
github_CI_workflow
KacperNapierski Sep 13, 2023
8cdcd62
Merge pull request #2 from KacperNapierski/github_workflows
KacperNapierski Sep 13, 2023
3879b62
github_CI_workflows
KacperNapierski Sep 13, 2023
c97addb
github_CI_workflows
KacperNapierski Sep 13, 2023
39de936
Merge pull request #3 from KacperNapierski/github_workflows
KacperNapierski Sep 13, 2023
c25319c
github_CI_workflows
KacperNapierski Sep 13, 2023
f66de13
Merge pull request #4 from KacperNapierski/github_workflows
KacperNapierski Sep 13, 2023
1ce5865
github_CI_workflows
KacperNapierski Sep 13, 2023
af14388
github_CI_workflows
KacperNapierski Sep 13, 2023
615830b
github_CI_workflows
KacperNapierski Sep 13, 2023
984f7b1
github_CI_workflows
KacperNapierski Sep 14, 2023
e18df5a
github_CI_workflows
KacperNapierski Sep 14, 2023
711dc70
workflow
KacperNapierski Sep 19, 2023
84db0e0
workflow
KacperNapierski Sep 19, 2023
4a3c916
workflow
KacperNapierski Sep 19, 2023
418624f
workflow
KacperNapierski Sep 19, 2023
6ce58e9
workflow
KacperNapierski Sep 19, 2023
44545e7
workflow
KacperNapierski Sep 19, 2023
88181b3
workflow
KacperNapierski Sep 19, 2023
dd08095
workflow
KacperNapierski Sep 19, 2023
b0bb930
workflow
KacperNapierski Sep 19, 2023
2757cd4
workflow
KacperNapierski Sep 19, 2023
69b967d
workflow
KacperNapierski Sep 19, 2023
3de8f2c
Merge pull request #5 from KacperNapierski/github_workflows
KacperNapierski Sep 19, 2023
baaf388
Merge branch 'grapheneX:master' into master
KacperNapierski Sep 19, 2023
8ea0161
poetry
KacperNapierski Sep 21, 2023
cc1195d
poetry
KacperNapierski Sep 21, 2023
a53e90e
poetry
KacperNapierski Sep 21, 2023
2ca7b45
poetry
KacperNapierski Sep 21, 2023
82ac2b3
poetry
KacperNapierski Sep 21, 2023
732edc7
poetry
KacperNapierski Sep 21, 2023
c504bb2
poetry
KacperNapierski Sep 21, 2023
647f04f
poetry
KacperNapierski Sep 21, 2023
bd35f4c
poetry
KacperNapierski Sep 21, 2023
48ba6eb
poetry
KacperNapierski Sep 21, 2023
1e5f954
poetry
KacperNapierski Sep 21, 2023
b41f0a2
poetry
KacperNapierski Sep 21, 2023
7f7b670
poetry
KacperNapierski Sep 21, 2023
348a5d8
poetry
KacperNapierski Sep 21, 2023
889df71
Merge pull request #6 from KacperNapierski/CI-test
KacperNapierski Sep 21, 2023
14afb3b
Update .github/workflows/CI.yaml
KacperNapierski Sep 22, 2023
5a1285f
Update .github/workflows/CI.yaml
KacperNapierski Sep 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Continuous Integration

on:
workflow_dispatch:
pull_request:
branches:
- master
paths:
- 'docker/**'
- 'graphenex/**'
push:
branches:
- master
paths:
- 'docker/**'
- 'graphenex/**'
orhun marked this conversation as resolved.
Show resolved Hide resolved


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
orhun marked this conversation as resolved.
Show resolved Hide resolved
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