Skip to content

Commit

Permalink
Combine worfklows
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Jul 27, 2024
1 parent d88a26b commit 4eb0be7
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 87 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/black.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Formatting

on: push

jobs:
formatting-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
isort --check .
formatting-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
black --check .
formatting-ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
ruff format --check .
ruff-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Code Formatting (App)
run: |
pip install -r requirements-dev.txt
ruff check .
17 changes: 0 additions & 17 deletions .github/workflows/isort.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/ruff-format.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/ruff.yml

This file was deleted.

30 changes: 29 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Code Tests
on: push

jobs:
testing:
testing-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,3 +16,31 @@ jobs:
pip install .
pip install -r requirements-dev.txt
python3 -m pytest .
testing-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Run tests
run: |
pip install .
pip install -r requirements-dev.txt
python3 -m pytest .
testing-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11.1

- name: Run tests
run: |
pip install .
pip install -r requirements-dev.txt
python3 -m pytest . -s
18 changes: 0 additions & 18 deletions .github/workflows/windows-tests.yml

This file was deleted.

0 comments on commit 4eb0be7

Please sign in to comment.