99
1010jobs :
1111 tests :
12- name : " Python ${{ " {{" }} matrix.python-version {{ "}}" }}"
12+ name : " Python ${{ brace(' matrix.config. python-version') }}"
1313 runs-on : " {{ ci_platform }}"
1414 env :
1515 USING_COVERAGE : ' {{ ",".join(no_dev_versions(python_versions)) }}'
1616
1717 strategy :
1818 fail-fast : False
1919 matrix :
20- python-version : ["{{ '","'.join(no_dev_versions(python_versions)) }}"]
20+ config:{% for version in no_dev_versions(python_versions) %}
21+ - {python-version: "{{ version }}", testenvs: "{{ gh_actions_versions[version].replace(' ', '') }}"}{% endfor %}
2122
2223 steps :
2324 - name : Checkout 🛎️
@@ -26,20 +27,20 @@ jobs:
2627 - name : Setup Python 🐍
2728 uses : " actions/setup-python@v2"
2829 with :
29- python-version : " ${{ " {{" }} matrix.python-version {{ "}}" }}"
30+ python-version : " ${{ brace(' matrix.config. python-version') }}"
3031
3132 - name : Install dependencies 🔧
3233 run : |
3334 {% for line in dependency_lines %}{{ line }}
3435 {% endfor %}
35- - name : " Run Tests for Python ${{ " {{" }} matrix.python-version {{ "}}" }}"
36- run : " python -m tox"
36+ - name : " Run Tests for Python ${{ brace(' matrix.config. python-version') }}"
37+ run : " python -m tox -e ${{ brace('matrix.config.testenvs') }} "
3738{% if ci_name == "Linux Tests" %}
3839{% if enable_tests and not stubs_package %}
3940 - name : " Upload Coverage"
4041 uses : actions/upload-artifact@v2
4142 with :
42- name : " coverage-${{ " {{" }} matrix.python-version {{ "}}" }}"
43+ name : " coverage-${{ brace(' matrix.config. python-version') }}"
4344 path : .coverage
4445
4546
@@ -153,3 +154,5 @@ jobs:
153154 ANACONDA_TOKEN : ${{ "{{" }} secrets.ANACONDA_TOKEN {{ "}}" }}{% endif %}
154155
155156{% endif %}
157+
158+ {# TODO: perhaps merge mypy into this workflow, so that releases depend on it? # }
0 commit comments