Skip to content

Commit

Permalink
update ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRFerguson committed Jan 18, 2025
1 parent 90076b5 commit fdfb88d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/automated_tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: formatting_checks
name: ci_cd_checks

on:
pull_request:
branches: ["master", "dev"]
branches: "*"
push:
branches: ["master", "dev"]
branches: "*"

jobs:
check_linting_and_formatting:
Expand All @@ -30,15 +30,13 @@ jobs:
- name: Installs
if: steps.changed-python-files.outputs.any_changed == 'true'
run: |
python -m pip install black flake8 isort
python -m pip install ruff
- name: Run Python formatting and linting
- name: Ruff
if: steps.changed-python-files.outputs.any_changed == 'true'
run: |
flake8 ${{ steps.changed-python-files.outputs.all_changed_files }} --extend-ignore=E203,W503 --max-line-length=120
black --check ${{ steps.changed-python-files.outputs.all_changed_files }}
isort --profile black ${{ steps.changed-python-files.outputs.all_changed_files }}
ruff check --output-format=github .
run_unit_tests:
runs-on: macos-latest
steps:
Expand Down

0 comments on commit fdfb88d

Please sign in to comment.