From 2083fef55936693005554df08787755ad7ef3819 Mon Sep 17 00:00:00 2001 From: nithinmanoj10 Date: Sun, 5 May 2024 12:22:31 +0530 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=9B=A1=EF=B8=8F=20Added=20Ruff=20and?= =?UTF-8?q?=20PyTest=20GitHub=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pytest.yaml | 28 ++++++++++++++++++++++++++++ .github/workflows/ruff.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/pytest.yaml create mode 100644 .github/workflows/ruff.yaml diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml new file mode 100644 index 0000000..576a608 --- /dev/null +++ b/.github/workflows/pytest.yaml @@ -0,0 +1,28 @@ +name: Run Unit Test via Pytest + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[dev] + pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 + - name: Test with pytest + run: | + coverage run -m pytest -v -s -p no:warnings + - name: Generate Coverage Report + run: | + coverage report -m \ No newline at end of file diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml new file mode 100644 index 0000000..94f35cd --- /dev/null +++ b/.github/workflows/ruff.yaml @@ -0,0 +1,25 @@ +name: Ruff Linting + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ruff + - name: Analysing the code with ruff + run: | + cd stgraph/dataset/ + ruff check . + cd ../../ \ No newline at end of file From 54d364f0c70d21bd32aa8f9c89ab8fe6199dfa98 Mon Sep 17 00:00:00 2001 From: nithinmanoj10 Date: Sun, 5 May 2024 12:24:35 +0530 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=A5=20Removed=20Ruff=20and=20PyTes?= =?UTF-8?q?t=20yaml=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pytest.yaml | 28 ---------------------------- .github/workflows/ruff.yaml | 25 ------------------------- 2 files changed, 53 deletions(-) delete mode 100644 .github/workflows/pytest.yaml delete mode 100644 .github/workflows/ruff.yaml diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml deleted file mode 100644 index 576a608..0000000 --- a/.github/workflows/pytest.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Run Unit Test via Pytest - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8"] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -e .[dev] - pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 - - name: Test with pytest - run: | - coverage run -m pytest -v -s -p no:warnings - - name: Generate Coverage Report - run: | - coverage report -m \ No newline at end of file diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml deleted file mode 100644 index 94f35cd..0000000 --- a/.github/workflows/ruff.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Ruff Linting - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ruff - - name: Analysing the code with ruff - run: | - cd stgraph/dataset/ - ruff check . - cd ../../ \ No newline at end of file From d419da2bd941d15184e1223f638262dc332406c7 Mon Sep 17 00:00:00 2001 From: Nithin Puthalath Manoj Date: Mon, 13 May 2024 21:16:08 +0530 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9D=20Add=20issue=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report.md | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..048e5ff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,33 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Environment Details** + - Operating System + - Python Version + - STGraph Version + - CUDA Version + +**Additional context** +Add any other context about the problem here.