Skip to content

Commit

Permalink
Combine jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Jul 27, 2024
1 parent 1ff3683 commit cad4e62
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 71 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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-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.

2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload salve to Pypi
name: Upload token_tools to Pypi

on:
release:
Expand Down
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 cad4e62

Please sign in to comment.