From 7ba8b529f08764371316df2f2b9784241d729cdc Mon Sep 17 00:00:00 2001 From: Arjun Bingly Date: Tue, 19 Mar 2024 22:35:49 -0400 Subject: [PATCH] Update and rename ruff_linting.yml to main_build.yml --- .github/workflows/main_build.yml | 47 ++++++++++++++++++++++++++++++ .github/workflows/ruff_linting.yml | 25 ---------------- 2 files changed, 47 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/main_build.yml delete mode 100644 .github/workflows/ruff_linting.yml diff --git a/.github/workflows/main_build.yml b/.github/workflows/main_build.yml new file mode 100644 index 0000000..5690f92 --- /dev/null +++ b/.github/workflows/main_build.yml @@ -0,0 +1,47 @@ +name: Main Build +on: + pull_request: + branches: + - main + +jobs: + adopt-ruff: + runs-on: self-hosted + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up python + id: setup-python + uses: actions/setup-python@v5 + with: + python-version: 3.x + + - name: Install ruff + run: pip install ruff + + - name: Run the adopt-ruff action + uses: chartboost/ruff-action@v1 + + pytests: + runs-on: self-hosted + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up python + id: setup-python + uses: actions/setup-python@v5 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + + - name: Run tests + run: | + pytest src + + diff --git a/.github/workflows/ruff_linting.yml b/.github/workflows/ruff_linting.yml deleted file mode 100644 index ecd2e32..0000000 --- a/.github/workflows/ruff_linting.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Ruff Linting -on: - pull_request: - branches: - - main - -jobs: - adopt-ruff: - runs-on: self-hosted - steps: - - name: Check out repository code - uses: actions/checkout@v4 - - - name: Set up python - id: setup-python - uses: actions/setup-python@v5 - with: - python-version: 3.x - - - name: Install ruff - run: pip install ruff - - - name: Run the adopt-ruff action - uses: chartboost/ruff-action@v1 -