parent
b229e4fd17
commit
19df95a7d0
@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
name: "PR Labeler"
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: ["opened", "reopened", "ready_for_review"]
|
|
||||||
jobs:
|
|
||||||
triage:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/labeler@v5
|
|
||||||
if: ${{ github.event.pull_request.draft == false }}
|
|
@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
name: Pylint
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: ["3.11"]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/library/setup
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install pylint
|
|
||||||
- name: Analysing the code with pylint
|
|
||||||
run: |
|
|
||||||
pylint $(git ls-files '*.py')
|
|
@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
||||||
|
|
||||||
name: Python application
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["master"]
|
|
||||||
pull_request:
|
|
||||||
branches: ["master"]
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/library/setup
|
|
||||||
- name: Lint with flake8
|
|
||||||
run: |
|
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
||||||
- name: Test with pytest
|
|
||||||
run: |
|
|
||||||
pytest
|
|
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
||||||
|
|
||||||
name: Python package
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["master"]
|
|
||||||
pull_request:
|
|
||||||
branches: ["master"]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
python-version: ["3.10", "3.11", "3.12"]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/library/setup
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Lint with flake8
|
|
||||||
run: |
|
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
||||||
- name: Test with pytest
|
|
||||||
run: |-
|
|
||||||
pytest
|
|
@ -1,50 +0,0 @@
|
|||||||
---
|
|
||||||
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
||||||
#
|
|
||||||
# You can adjust the behavior by modifying this file.
|
|
||||||
# For more information, see:
|
|
||||||
# https://github.com/actions/stale
|
|
||||||
name: Mark stale issues and pull requests
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# Scheduled to run at 1.30 UTC everyday
|
|
||||||
- cron: '30 1 * * *'
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
days-before-issue-stale: 14
|
|
||||||
days-before-issue-close: 14
|
|
||||||
stale-issue-label: "status:stale"
|
|
||||||
close-issue-reason: not_planned
|
|
||||||
any-of-labels: "status:awaiting user response,status:more data needed"
|
|
||||||
stale-issue-message: >
|
|
||||||
Marking this issue as stale since it has been open for 14 days with no activity.
|
|
||||||
This issue will be closed if no further activity occurs.
|
|
||||||
|
|
||||||
close-issue-message: >
|
|
||||||
This issue was closed because it has been inactive for 28 days.
|
|
||||||
Please post a new issue if you need further assistance.
|
|
||||||
Thanks!
|
|
||||||
|
|
||||||
days-before-pr-stale: 14
|
|
||||||
days-before-pr-close: 14
|
|
||||||
stale-pr-label: "status:stale"
|
|
||||||
stale-pr-message: >
|
|
||||||
Marking this pull request as stale since it has been open for 14 days with no activity.
|
|
||||||
This PR will be closed if no further activity occurs.
|
|
||||||
|
|
||||||
close-pr-message: >
|
|
||||||
This pull request was closed because it has been inactive for 28 days.
|
|
||||||
Please open a new pull request if you need furtherassistance. Thanks!
|
|
||||||
|
|
||||||
# Label that can be assigned to issues to exclude them from being marked as stale
|
|
||||||
exempt-issue-labels: 'override-stale'
|
|
||||||
# Label that can be assigned to PRs to exclude them from being marked as stale
|
|
||||||
exempt-pr-labels: "override-stale"
|
|
@ -1,22 +1,20 @@
|
|||||||
---
|
---
|
||||||
name: test
|
name: build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version:
|
|
||||||
- "3.10"
|
|
||||||
- "3.11"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/library/setup
|
- uses: ./.github/library/setup
|
||||||
with:
|
- name: Install dependencies
|
||||||
python-version: ${{ matrix.python-version }}
|
run: |
|
||||||
- name: Run tests
|
pip install pytest
|
||||||
|
- name: Run Python unit tests
|
||||||
run: pytest
|
run: pytest
|
||||||
|
- name: Verify that the Docker image for the action builds
|
||||||
|
run: docker build . --file Dockerfile
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
name: Unit Tests
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/library/setup
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.10"
|
|
||||||
- name: Run unit tests
|
|
||||||
run: pytest
|
|
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
name: build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/library/setup
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install pytest
|
|
||||||
- name: Run Python unit tests
|
|
||||||
run: pytest
|
|
||||||
- name: Verify that the Docker image for the action builds
|
|
||||||
run: docker build . --file Dockerfile
|
|
||||||
- name: Verify integration test results
|
|
||||||
run: pytest
|
|
Loading…
Reference in new issue