forked from openviess/PyViCare
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.17 KB
/
Copy pathformat.yml
File metadata and controls
46 lines (42 loc) · 1.17 KB
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
name: Format
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.11"
jobs:
sort:
name: sort testdata
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v6.0.2
- name: 🚀 Sort test response data
run: |
find './tests/response' \
-maxdepth '1' \
-type 'f' \
-name '*.json' \
-exec sh -c 'mv $1 $1.tmp; jq ".data|=sort_by(.feature)" --sort-keys $1.tmp > $1; rm $1.tmp' shell {} ";"
- name: 🔍 Verify
run: git diff --name-only --exit-code
deprecations:
name: validate deprecation database
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v6.0.2
- name: Set up Python
uses: actions/setup-python@v6.2.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Update deprecation database
run: python check_deprecations.py --update
- name: Verify no changes
run: git diff --exit-code
if: always()