summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:38:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:38:14 +0000
commit9e256557e44c09aed7da1420bbd066d434a10951 (patch)
tree7c040c7b4dc2e6205d6003fabcda874acd551025 /.github/workflows
parentInitial commit. (diff)
downloadport-for-upstream/0.7.1.tar.xz
port-for-upstream/0.7.1.zip
Adding upstream version 0.7.1.upstream/0.7.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/automerge.yml39
-rw-r--r--.github/workflows/build.yml11
-rw-r--r--.github/workflows/linters.yml18
-rw-r--r--.github/workflows/pr-check.yml27
-rw-r--r--.github/workflows/pypi.yml12
-rw-r--r--.github/workflows/tests-macos.yml17
-rw-r--r--.github/workflows/tests.yml15
7 files changed, 139 insertions, 0 deletions
diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml
new file mode 100644
index 0000000..aa0e102
--- /dev/null
+++ b/.github/workflows/automerge.yml
@@ -0,0 +1,39 @@
+name: Merge me test dependencies!
+
+on:
+ workflow_run:
+ types:
+ - completed
+ workflows:
+ # List all required workflow names here.
+ - 'Run linters'
+ - 'Run tests'
+ - 'Run tests on macos'
+ - 'Test build package'
+ - 'Run test commands'
+
+jobs:
+ merge-me:
+ name: Merge me!
+ runs-on: ubuntu-latest
+ steps:
+ - # It is often a desired behavior to merge only when a workflow execution
+ # succeeds. This can be changed as needed.
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
+ name: Merge me!
+ uses: ridedott/merge-me-action@v2
+ with:
+ # Depending on branch protection rules, a manually populated
+ # `GITHUB_TOKEN_WORKAROUND` secret with permissions to push to
+ # a protected branch must be used. This secret can have an arbitrary
+ # name, as an example, this repository uses `DOTTBOTT_TOKEN`.
+ #
+ # When using a custom token, it is recommended to leave the following
+ # comment for other developers to be aware of the reasoning behind it:
+ #
+ # This must be used as GitHub Actions token does not support pushing
+ # to protected branches.
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MERGE_METHOD: MERGE
+ PRESET: DEPENDABOT_MINOR
+ ENABLED_FOR_MANUAL_CHANGES: 'true'
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..ebaa45f
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,11 @@
+name: Test build package
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v2.1.2
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
new file mode 100644
index 0000000..dec9e2e
--- /dev/null
+++ b/.github/workflows/linters.yml
@@ -0,0 +1,18 @@
+name: Run linters
+
+on:
+ push:
+ branches: [ master ]
+ paths:
+ - '**.py'
+ - .github/workflows/linters.yml
+ - requirements-lint.txt
+ pull_request:
+ branches: [ master ]
+jobs:
+ lint:
+ uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v2.1.2
+ with:
+ pipenv: true
+ mypy: true
+ pydocstyle: false \ No newline at end of file
diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml
new file mode 100644
index 0000000..758fd46
--- /dev/null
+++ b/.github/workflows/pr-check.yml
@@ -0,0 +1,27 @@
+name: Run test commands
+
+on:
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ bump:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v3
+ - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.1.2
+ with:
+ python-version: "3.11"
+ pipenv-install-options: "--skip-lock"
+ command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x"
+ towncrier:
+ runs-on: ubuntu-latest
+ if: ${{ github.actor != 'dependabot[bot]' }}
+ steps:
+ - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.1.2
+ with:
+ python-version: "3.11"
+ pipenv-install-options: "--skip-lock"
+ command: towncrier check --compare-with origin/master
+ fetch-depth: 0
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
new file mode 100644
index 0000000..f90d2ce
--- /dev/null
+++ b/.github/workflows/pypi.yml
@@ -0,0 +1,12 @@
+name: Package and publish
+on:
+ push:
+ tags:
+ - v*
+jobs:
+ build:
+ uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v2.1.2
+ with:
+ publish: true
+ secrets:
+ pypi_token: ${{ secrets.pypi_token }}
diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml
new file mode 100644
index 0000000..4732209
--- /dev/null
+++ b/.github/workflows/tests-macos.yml
@@ -0,0 +1,17 @@
+name: Run tests on macos
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+
+jobs:
+ tests:
+ uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v2.1.2
+ with:
+ python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]'
+ os: macos-latest
+ pipenv: true
+ pipenv-install-options: --skip-lock
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..adbb036
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,15 @@
+name: Run tests
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ tests:
+ uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v2.1.2
+ with:
+ python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]'
+ pipenv: true
+ pipenv-install-options: --skip-lock