Skip to content

Commit

Permalink
Cleanup workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
RB387 committed Sep 23, 2024
1 parent db80feb commit 4dfba4d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cookiecutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
auto-update-project:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
auto-update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
draft-release:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
- name: Update version
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
- name: Publish to pypi
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- name: Download actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.21
Expand All @@ -22,13 +24,17 @@ jobs:
name: Check if automatic project update was successful
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- name: Fail if .rej files exist as structure update was not successful
run: test -z "$(find . -iname '*.rej')"

pre-commit:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
- run: poetry run pre-commit run --all-files
Expand All @@ -40,6 +46,8 @@ jobs:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Cleanup workspace
uses: creditornot/actions/action-clean@main
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
with:
Expand Down

0 comments on commit 4dfba4d

Please sign in to comment.