sdadfadas
1# Python Misc unit tests
2name: Python Misc
3
4on:
5push:
6branches:
7- "master"
8- "[0-9].[0-9]*"
9pull_request:
10types: [synchronize, opened, reopened, ready_for_review]
11
12# cancel previous workflow jobs for PRs
13concurrency:
14group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
15cancel-in-progress: true
16
17jobs:
18python-lint:
19runs-on: ubuntu-22.04
20steps:
21- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
22uses: actions/checkout@v4
23with:
24persist-credentials: false
25submodules: recursive
26- name: Check for file changes
27id: check
28uses: ./.github/actions/change-detector/
29with:
30token: ${{ secrets.GITHUB_TOKEN }}
31- name: Setup Python
32uses: ./.github/actions/setup-backend/
33if: steps.check.outputs.python
34
35babel-extract:
36runs-on: ubuntu-22.04
37steps:
38- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
39uses: actions/checkout@v4
40with:
41persist-credentials: false
42submodules: recursive
43- name: Check for file changes
44id: check
45uses: ./.github/actions/change-detector/
46with:
47token: ${{ secrets.GITHUB_TOKEN }}
48- name: Setup Python
49if: steps.check.outputs.python
50uses: ./.github/actions/setup-backend/
51- name: Test babel extraction
52if: steps.check.outputs.python
53run: scripts/translations/babel_update.sh
54