Skip to content

Commit

Permalink
attempt to modify ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth9820 committed Oct 17, 2023
1 parent 617949c commit 2d03296
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ci

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]


jobs:
formatting:
runs-on: [ubuntu-latest]
uses: ./.github/workflows/formatting.yaml
nvidia-gpu:
runs-on: [ nvidia ]
uses: ./.github/workflows/nvidia-tests.yaml
34 changes: 34 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: formatting tests

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]


jobs:
formatting:
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Update black
run: |
pip install --upgrade black
- name: Lint and Format Check with flake8 and black
run: |
black --diff --check .
flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,7 @@ on:


jobs:
formatting:
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Update black
run: |
pip install --upgrade black
- name: Lint and Format Check with flake8 and black
run: |
black --diff --check .
flake8
inter-layer:
needs: formatting
runs-on: [ nvidia ]

strategy:
Expand Down Expand Up @@ -62,7 +37,6 @@ jobs:
intra-layer:
needs: formatting
runs-on: [ nvidia ]

steps:
Expand Down

0 comments on commit 2d03296

Please sign in to comment.