summaryrefslogtreecommitdiffstats
path: root/.github/workflows/pr-check.yml
blob: 758fd46a6cd54ff7756a0c545de17378aa37329b (plain)
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
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