88 paths :
99 - ' archive/**'
1010 - ' .glotter.yml'
11+ - ' repo-config.yml'
1112 - ' .github/workflows/test-suite.yml'
1213 - ' pyproject.toml'
1314 - ' poetry.lock'
@@ -28,31 +29,31 @@ jobs:
2829 runs-on : ubuntu-latest
2930
3031 outputs :
31- status : ${{ steps.changed-files.outputs.any_changed }}
32- changed_files : ${{ steps.changed-files.outputs.all_changed_files }}
32+ status : ${{ steps.changed-files.outputs.exists }}
33+ changed_files : ${{ steps.changed-files.outputs.files }}
3334 steps :
3435 - uses : actions/checkout@v4
3536 with :
3637 fetch-depth : 2
3738
3839 - name : Get changed code files
3940 id : changed-files
40- uses : tj-actions /changed-files@v45
41+ uses : yumemi-inc /changed-files@v3
4142 with :
42- files : |
43+ patterns : |
4344 archive/**
4445 .glotter.yml
46+ repo-config.yml
4547 .github/workflows/test-suite.yml
4648 pyproject.toml
4749 poetry.lock
4850 scripts/run_tests.py
49- files_ignore : |
50- **/*.md
51+ !**/*.md
5152
5253 - name : List all relevant changed files
53- if : steps.changed-files.outputs.any_changed == 'true'
54+ if : steps.changed-files.outputs.exists == 'true'
5455 env :
55- ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
56+ ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.files }}
5657 run : |
5758 for file in ${ALL_CHANGED_FILES}; do
5859 echo "$file was changed"
@@ -64,29 +65,27 @@ jobs:
6465 needs : changed-files
6566 if : needs.changed-files.outputs.status == 'true' || ${{ github.event_name == 'schedule' }}
6667
67- strategy :
68- fail-fast : true
69- matrix :
70- python-version : ["3.11"]
71- poetry-version : ["2.1.1"]
72- os : [ubuntu-latest]
73- num_batches : [6]
74-
75- runs-on : ${{ matrix.os }}
68+ runs-on : ubuntu-latest
7669 steps :
7770 - uses : actions/checkout@v4
7871 with :
7972 fetch-depth : 2
8073
74+ - name : Read repo config
75+ uses :
pietrobolcato/[email protected] 76+ id : repo-config
77+ with :
78+ config : repo-config.yml
79+
8180 - name : Set up Python
8281 uses : actions/setup-python@v5
8382 with :
84- python-version : ${{ matrix. python-version }}
83+ python-version : " ${{ steps.repo-config.outputs[' python-version'] }}"
8584
8685 - name : Run Poetry Image
8786 uses : abatilo/actions-poetry@v3
8887 with :
89- poetry-version : ${{ matrix. poetry-version }}
88+ poetry-version : " ${{ steps.repo-config.outputs[' poetry-version'] }}"
9089
9190 - name : Install Dependencies
9291 run : poetry install
9796 - name : Download Docker images, Test Appropriate Sample Programs, Remove Docker Images
9897 run : poetry run python scripts/run_tests.py
9998 --event ${{ github.event_name }}
100- --num-batches ${{ matrix.num_batches }}
99+ --num-batches ${{ steps.repo-config.outputs['num-batches'] }}
101100 --parallel
102101 --remove
103102 ${{ needs.changed-files.outputs.changed_files }}
0 commit comments