-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (51 loc) · 1.78 KB
/
tests.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
65
66
name: Tests cases
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request]
jobs:
check_if_output_files_changed:
name: Check if output files changed
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Setup requirements
run: |
python3 -m pip install -U -r requirements.txt
python3 -m pip install -U maturin
- name: Install local mapfile_parser
run: python3 -m pip install .
- name: Update tests outputs
run: python3 tests/update_outputs.py
- name: Check if there are any changes in the test cases
id: tests_changes
uses: tj-actions/verify-changed-files@v14
- name: tables changes
if: steps.tests_changes.outputs.files_changed == 'true'
run: |
echo "Changed files: ${{ steps.tests_changes.outputs.changed_files }}"
echo "Please install the latest changes, run \`python3 tests/update_outputs.py\`, check the changes are desirable and commit the result"
exit 1
check_progress_nonmatchings:
name: Check progress by NON_MATCHING symbols
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Setup requirements
run: |
python3 -m pip install -U -r requirements.txt
python3 -m pip install -U maturin
- name: Install local mapfile_parser
run: python3 -m pip install .
- name: Update tests outputs
run: python3 tests/check_progress_nonmatchings.py