NB-17 reformat code #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: { } | |
push: | |
branches: | |
- '*' | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z]+[0-9]+)? | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
pre_commit: | |
name: Run lint rules | |
runs-on: ubuntu-22.04-sh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Set up Python | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: '3.10' | |
- uses: pre-commit/action@v3.0.0 | |
test: | |
runs-on: ubuntu-22.04-sh | |
name: Runs plugin tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Login to Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.tangience.net | |
username: ${{ secrets.HARBOR_USERNAME }} | |
password: ${{ secrets.HARBOR_PASSWORD }} | |
- name: Test the image | |
run: ./test.sh | |
changelog: | |
name: "Changelog Generator" | |
runs-on: ubuntu-22.04-sh | |
needs: | |
- test | |
timeout-minutes: 30 | |
if: github.event_name == 'release' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
- name: "Generate changelog" | |
uses: charmixer/auto-changelog-action@v1.4 | |
with: | |
exclude_labels: "type: skip ci,status: abandoned,type: duplicate,type: question,type: wontfix,type: invalid" | |
token: ${{ secrets.GIT_TOKEN }} | |
- name: Commit and push to dev | |
uses: EndBug/add-and-commit@v9.1.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
with: | |
add: "CHANGELOG.md" | |
message: "[skip ci] Updated CHANGELOG.md" | |
new_branch: dev | |
push: origin dev --set-upstream | |
committer_name: GitHub Actions | |
committer_email: actions@github.com | |
default_author: github_actions |