From bddb52157505a466dad350c4345eb669c58407b6 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Oct 2024 21:05:13 -0400 Subject: [PATCH 1/5] `CHANGELOG.md` updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 072e099..497b921 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - `ReserverBaseError` added in `reserver/__init__.py` ### Changed +- GitHub actions are limited to the `dev, main` branches - `generate_template_setup_py` method in `reserver_func.py` - `Python 3.13` added to `test.yml` ## [0.3] - 2024-08-28 From 6b280d470a10a576f85d9c019708211f36a89f7e Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Oct 2024 21:05:50 -0400 Subject: [PATCH 2/5] limit GitHub action run on `main` and `dev` branches --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cce0799..0888212 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,17 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + - dev + + pull_request: + branches: + - dev + - main + types: [opened, synchronize, reopened, ready_for_review] env: TEST_PYTHON_VERSION: 3.9 From d92150ef193f430cbf45fbd2481ac9c546b87ca5 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Oct 2024 21:24:10 -0400 Subject: [PATCH 3/5] check for draft status --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0888212..81d340b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,14 +13,22 @@ on: branches: - dev - main - types: [opened, synchronize, reopened, ready_for_review] env: TEST_PYTHON_VERSION: 3.9 TEST_OS: 'ubuntu-20.04' jobs: + check-draft: + runs-on: ubuntu-latest + steps: + - name: Exit if draft PR + if: ${{ github.event.pull_request.draft == true }} + run: | + echo "This is a draft pull request. Exiting." + exit 1 build: + needs: check-draft runs-on: ${{ matrix.os }} strategy: fail-fast: false From f58cab9df41d66ee2c0bc77928986e764c6b3b45 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Tue, 22 Oct 2024 14:22:30 -0400 Subject: [PATCH 4/5] remove draft logic --- .github/workflows/test.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81d340b..6014761 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,16 +19,7 @@ env: TEST_OS: 'ubuntu-20.04' jobs: - check-draft: - runs-on: ubuntu-latest - steps: - - name: Exit if draft PR - if: ${{ github.event.pull_request.draft == true }} - run: | - echo "This is a draft pull request. Exiting." - exit 1 build: - needs: check-draft runs-on: ${{ matrix.os }} strategy: fail-fast: false From 1e01e213be482e9c50c160c29f85cacf00f29c80 Mon Sep 17 00:00:00 2001 From: AmirHosein Rostami <32750909+AHReccese@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:21:12 +0330 Subject: [PATCH 5/5] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 497b921..7297a00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - `ReserverBaseError` added in `reserver/__init__.py` ### Changed -- GitHub actions are limited to the `dev, main` branches +- GitHub actions are limited to the `dev` and `main` branches - `generate_template_setup_py` method in `reserver_func.py` - `Python 3.13` added to `test.yml` ## [0.3] - 2024-08-28