From e7162cc6e0a6b4ed39773428e33c48a053cb5675 Mon Sep 17 00:00:00 2001 From: AmirHosein Rostami <32750909+AHReccese@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:25:54 +0330 Subject: [PATCH] Add/limit action run (#42) * `CHANGELOG.md` updated * limit GitHub action run on `main` and `dev` branches * exit if current pull request is draft * add needs-on * fix fail * relax PR status condition * remove draft logic * Update CHANGELOG.md --- .github/workflows/test.yml | 11 ++++++++++- CHANGELOG.md | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2cb8c1..5d8cfae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,16 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + - dev + + pull_request: + branches: + - dev + - main env: TEST_PYTHON_VERSION: 3.9 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3705c09..5128d58 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 - `DMetaBaseError` added to `dmeta/__init__.py` ### Changed +- GitHub actions are limited to the `dev` and `main` branches - `Python 3.13` added to `test.yml` ## [0.2] - 2024-08-14 ### Added