@@ -41,10 +41,10 @@ jobs:
41
41
strategy :
42
42
fail-fast : false
43
43
matrix :
44
- python : ["python2 .7", "python3 .3", "python3 .4", "python3 .5", "python3 .6", "python3 .7", "python3 .8", "python3 .9", "python3 .10", "python3 .11", "python3 .12"]
44
+ python : ["2 .7", "3 .3", "3 .4", "3 .5", "3 .6", "3 .7", "3 .8", "3 .9", "3 .10", "3 .11", "3 .12"]
45
45
ref : ["${{ inputs.ref }}", "${{ inputs.base-ref }}"]
46
46
container :
47
- image : danielflook/python-minifier-build:${{ matrix.python }}-2023-09-25
47
+ image : danielflook/python-minifier-build:python ${{ matrix.python }}-2023-09-25
48
48
volumes :
49
49
- /corpus:/corpus
50
50
- /corpus-results:/corpus-results
@@ -70,18 +70,18 @@ jobs:
70
70
cat sha.txt
71
71
VERSION=0.0.0
72
72
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" python-minifier/setup.py
73
- (cd python-minifier && ${{matrix.python}} setup.py install)
73
+ (cd python-minifier && pip ${{ matrix.python }} install . )
74
74
75
75
- name : Run tests
76
76
run : |
77
- if [[ "${{ matrix.python }}" == "python3 .3" || "${{ matrix.python }}" == "python3 .4" || "${{ matrix.python }}" == "python3 .5" ]]; then
77
+ if [[ "${{ matrix.python }}" == "3 .3" || "${{ matrix.python }}" == "3 .4" || "${{ matrix.python }}" == "3 .5" ]]; then
78
78
# These versions randomise the hash seed, but don't preserve dict order
79
79
# This affects how names are assigned. Disable the hash randomisation for
80
80
# deterministic results.
81
81
export PYTHONHASHSEED=0
82
82
fi
83
83
84
- ${{matrix.python}} workflow/corpus_test/generate_results.py /corpus /corpus-results $(<sha.txt) ${{ inputs.regenerate-results }}
84
+ python ${{matrix.python}} workflow/corpus_test/generate_results.py /corpus /corpus-results $(<sha.txt) ${{ inputs.regenerate-results }}
85
85
86
86
generate_report :
87
87
name : Generate Report
@@ -125,4 +125,4 @@ jobs:
125
125
126
126
- name : Generate Report
127
127
run : |
128
- python3.11 workflow/corpus_test/generate_report.py /corpus-results ${{ inputs.ref }} $(<sha.txt) ${{ inputs.base-ref }} $(<base-sha.txt) >> $GITHUB_STEP_SUMMARY
128
+ python3.12 workflow/corpus_test/generate_report.py /corpus-results ${{ inputs.ref }} $(<sha.txt) ${{ inputs.base-ref }} $(<base-sha.txt) >> $GITHUB_STEP_SUMMARY
0 commit comments