Skip to content

Commit

Permalink
add on push
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsrke committed Jan 24, 2024
1 parent 906477b commit 4491ce7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/3d_parallelism_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
name: Run non-FA2-related unit tests

on:
workflow_dispatch:
push:
branches: [ main ]
# paths:
# - "src/**/*.py"
# - "examples/**/*.py"
# - "tests/**/*.py"
# Only run tests if we modify the following files
paths:
- "src/**/*.py"
- "examples/**/*.py"
- "tests/**/*.py"

pull_request:
branches: [ main ]
#paths:
# - "src/**/*.py"
# - "examples/**/*.py"
# - "tests/**/*.py"
paths:
- "src/**/*.py"
- "examples/**/*.py"
- "tests/**/*.py"

jobs:
tests:
runs-on: [multi-gpu, nvidia-gpu, 8-t4, ci]
container:
# image: nvcr.io/nvidia/pytorch:23.03-py3
image: runpod/pytorch:2.1.1-py3.10-cuda12.1.1-devel-ubuntu22.04
ports:
- 80
options: --gpus all --shm-size "8G"
steps:
- uses: actions/checkout@v3
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'

- name: Python environment
run: |
which python
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Code Quality

on:
workflow_dispatch:
push:
branches: [ main ]
# Only run tests if we modify the following files
paths:
- "src/**/*.py"

pull_request:
branches: [ main ]
paths:
- "src/**/*.py"

jobs:
cloc:
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/fa2_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ on:
workflow_dispatch:
push:
branches: [ main ]
# paths:
# - "src/**/*.py"
# - "examples/**/*.py"
# - "tests/**/*.py"
# Only run tests if we modify the following files
paths:
- "src/**/*.py"
- "examples/**/*.py"
- "tests/**/*.py"

pull_request:
branches: [ main ]
#paths:
# - "src/**/*.py"
# - "examples/**/*.py"
# - "tests/**/*.py"
paths:
- "src/**/*.py"
- "examples/**/*.py"
- "tests/**/*.py"

jobs:
tests:
Expand Down

0 comments on commit 4491ce7

Please sign in to comment.