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

github_CI_workflow #1

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


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

on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'docker/**'
- 'graphenex/**'

push:
branches:
- main
paths:
- 'docker/**'
- 'graphenex/**'

#defaults:
# run:
# shell: bash


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

graphenex_actions_linux:
name: "Actions on graphenex linux"
runs-on: ubuntu-latest
needs: setup_linux

steps:
- name: 'run graphenex'
run: graphenex

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'
cache: 'pip'

- name: 'update pip'
run: python -m pip install --upgrade pip

- name: 'install 'graphenex'
run: python3 -m pip install graphenex

graphenex_actions_windows:
name: "Actions on graphenex windows"
runs-on: windows-latest
needs: setup_windows
steps:
- name: 'run graphenex'
run: graphenex