-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.6 KB
/
action-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Unit Testing
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'TODO.md'
- '**/*.md'
- .gitignore
- ./meta/main.yml
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
- '**/*.md'
- .gitignore
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.CI_TOKEN }}
jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ vars.MAIN_BRANCH }}
fetch-depth: 0
- name: Run Pytest
# TODO try this one: https://github.com/pavelzw/pytest-action
run: |
pip install pytest pytest-cov
pytest
run-action:
runs-on: ubuntu-latest
needs:
- run-unit-tests
steps:
- name: Run action
id: test-action
uses: ynput/github-query@generate-changelog
with:
repo: "ynput/ayon-addon-action-testing"
date: "2024-08-20T12:03:23Z"
query_parameters: "body,labels,title"
- name: Show results
run: |
echo "RAW-response: " && echo '${{ steps.test-action.outputs.raw-output }}'
echo "Labels: " && echo '${{ steps.test-action.outputs.label-list }}'
echo "Bump-increment: " && echo '${{ steps.test-action.outputs.bump-increment }}'
echo "Changelog: " && echo '${{ steps.test-action.outputs.changelog-markdown }}'
- name: Show changelog formatted
shell: bash
run: |
echo "${{ steps.test-action.outputs.changelog-markdown }}"