Skip to content

Commit

Permalink
Update and rename ruff_linting.yml to main_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly authored Mar 20, 2024
1 parent 7fd62c9 commit 7ba8b52
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 25 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main_build.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 0 additions & 25 deletions .github/workflows/ruff_linting.yml

This file was deleted.

0 comments on commit 7ba8b52

Please sign in to comment.