diff --git a/.github/actions/tests/pre-commit/action.yml b/.github/actions/tests/pre-commit/action.yml index e938cfa..7e92a41 100644 --- a/.github/actions/tests/pre-commit/action.yml +++ b/.github/actions/tests/pre-commit/action.yml @@ -11,10 +11,6 @@ inputs: description: "The version of Python to use, such as 3.11.0" required: true type: string - github-token: - description: "The GitHub token to use for pushing changes to the repository" - required: true - type: string runs: using: "composite" @@ -101,19 +97,6 @@ runs: run: | npx prettier --write --log-level silent . - - name: Lint commit and push - id: lint-commit-and-push - shell: bash - run: | - git pull - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "chore: [gh] lint w black / prettier [skip ci]" - git push https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }} - env: - GITHUB_TOKEN: ${{ inputs.github-token }} - # see: https://pre-commit.ci/lite.html - name: pre-commit id: pre-commit diff --git a/.github/workflows/pullRequestController.yml b/.github/workflows/pullRequestController.yml index 4bc54b9..9255aa8 100644 --- a/.github/workflows/pullRequestController.yml +++ b/.github/workflows/pullRequestController.yml @@ -21,7 +21,6 @@ name: Pull Request Controller on: workflow_dispatch: - # GitHub Copilot: The `pull_request` and `pull_request_target` are two different # event types in GitHub Actions that trigger workflows when activity related # to pull requests occurs. @@ -43,16 +42,7 @@ on: # In general, use `pull_request` for workflows that need to access the code in the pull request, # and `pull_request_target` for workflows that need to be safe for pull requests from forks. pull_request_target: - types: - [ - opened, - closed, - synchronize, - edited, - ready_for_review, - review_requested, - assigned, - ] + types: [opened, closed, synchronize, edited] paths: - "**.py" - "**.requirements.txt" @@ -136,4 +126,3 @@ jobs: uses: ./.github/actions/tests/pre-commit with: python-version: "${{ env.python-version}}" - github-token: ${{ secrets.PAT }} diff --git a/.github/workflows/runTests.yml b/.github/workflows/runTests.yml index 71a8d61..1971f5a 100644 --- a/.github/workflows/runTests.yml +++ b/.github/workflows/runTests.yml @@ -6,6 +6,7 @@ name: Run all tests on: workflow_dispatch: + env: python-version: "3.11" @@ -30,4 +31,3 @@ jobs: uses: ./.github/actions/tests/pre-commit with: python-version: "${{ env.python-version}}" - github-token: ${{ secrets.PAT }} diff --git a/.github/workflows/semanticVersionBumpMerge.yml b/.github/workflows/semanticVersionBumpMerge.yml index dd6374a..5baabfd 100644 --- a/.github/workflows/semanticVersionBumpMerge.yml +++ b/.github/workflows/semanticVersionBumpMerge.yml @@ -77,6 +77,7 @@ jobs: if: env.VERSION_CHANGED == 'true' id: update_version run: | + echo "# -*- coding: utf-8 -*-" > __version__.py echo "__version__ = '${{ env.NEXT_VERSION }}'" > __version__.py git config --local user.email "action@github.com" git config --local user.name "GitHub Action" diff --git a/CHANGELOG.md b/CHANGELOG.md index 47df972..5bc362d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,17 @@ -## [1.1.2](https://github.com/lpm0073/automatic-grader/compare/v1.1.1...v1.1.2) (2023-11-28) +## [1.1.3](https://github.com/lpm0073/automatic-grader/compare/v1.1.2...v1.1.3) (2023-11-28) + + +### Bug Fixes + +* add shell ([3604be4](https://github.com/lpm0073/automatic-grader/commit/3604be4f70eb709993fe4f91d8edda87642ad005)) +* git pull before push ([fad074a](https://github.com/lpm0073/automatic-grader/commit/fad074a9b799efdf3869e98baceb724c54ce83c0)) +* run prettier with npx ([a46356e](https://github.com/lpm0073/automatic-grader/commit/a46356ef9bd3378114a1036dcc8c6eff8e016597)) +## [1.1.2](https://github.com/lpm0073/automatic-grader/compare/v1.1.1...v1.1.2) (2023-11-28) ### Bug Fixes -* add shell ([0f03b26](https://github.com/lpm0073/automatic-grader/commit/0f03b2655cbf4ffd32d65cf1ac45773bd05d2cb1)) +- add shell ([0f03b26](https://github.com/lpm0073/automatic-grader/commit/0f03b2655cbf4ffd32d65cf1ac45773bd05d2cb1)) ## [1.1.1](https://github.com/lpm0073/automatic-grader/compare/v1.1.0...v1.1.1) (2023-11-28) diff --git a/__version__.py b/__version__.py index 7bb021e..2343618 100644 --- a/__version__.py +++ b/__version__.py @@ -1 +1,2 @@ -__version__ = '1.1.3' +# -*- coding: utf-8 -*- +__version__ = "1.1.3" diff --git a/grader/__version__.py b/grader/__version__.py index 7bb021e..2343618 100644 --- a/grader/__version__.py +++ b/grader/__version__.py @@ -1 +1,2 @@ -__version__ = '1.1.3' +# -*- coding: utf-8 -*- +__version__ = "1.1.3"