Skip to content

Commit e2aad5f

Browse files
committed
More clean
1 parent f9045e7 commit e2aad5f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ concurrency:
1616

1717
jobs:
1818

19-
get_nox_data:
19+
nox_data:
20+
name: Query nox
2021
runs-on: ubuntu-latest
2122
outputs:
2223
tests_matrix: ${{ steps.generate.outputs.tests_matrix }}
@@ -57,12 +58,12 @@ jobs:
5758
echo $OUTPUT
5859
5960
build:
60-
needs: get_nox_data
61+
needs: nox_data
62+
name: build (${{ matrix.os }}, python ${{ matrix.python-version }}, tox ${{ matrix.tox-version }})
6163
runs-on: ${{ matrix.os }}
6264
strategy:
6365
matrix:
64-
include: ${{ fromJSON(needs.get_nox_data.outputs.tests_matrix) }}
65-
name: ${{ matrix.os }}, python ${{ matrix.python-version }}, tox ${{ matrix.tox-version }}
66+
include: ${{ fromJSON(needs.nox_data.outputs.tests_matrix) }}
6667

6768
steps:
6869
- uses: actions/checkout@v4
@@ -90,14 +91,14 @@ jobs:
9091
path: .coverage.*
9192

9293
coverage:
93-
needs: [build, get_nox_data]
94+
needs: [build, nox_data]
9495
runs-on: ubuntu-latest
9596
steps:
9697
- uses: actions/checkout@v4
97-
- name: Set up Python ${{ needs.get_nox_data.outputs.cover_python_version }}
98+
- name: Set up Python ${{ needs.nox_data.outputs.cover_python_version }}
9899
uses: actions/setup-python@v5
99100
with:
100-
python-version: ${{ fromJSON(needs.get_nox_data.outputs.cover_python_version) }}
101+
python-version: ${{ fromJSON(needs.nox_data.outputs.cover_python_version) }}
101102
- name: Install Nox-under-test
102103
run: |
103104
python -m pip install --disable-pip-version-check .
@@ -112,28 +113,28 @@ jobs:
112113
run: nox --non-interactive --session "cover"
113114

114115
lint:
115-
needs: get_nox_data
116+
needs: nox_data
116117
runs-on: ubuntu-latest
117118
steps:
118119
- uses: actions/checkout@v4
119-
- name: Set up Python ${{ needs.get_nox_data.outputs.lint_python_version }}
120+
- name: Set up Python ${{ needs.nox_data.outputs.lint_python_version }}
120121
uses: actions/setup-python@v5
121122
with:
122-
python-version: ${{ fromJSON(needs.get_nox_data.outputs.lint_python_version) }}
123+
python-version: ${{ fromJSON(needs.nox_data.outputs.lint_python_version) }}
123124
- name: Install Nox-under-test
124125
run: |
125126
python -m pip install --disable-pip-version-check .
126127
- name: Lint
127128
run: nox --non-interactive --error-on-missing-interpreter --session "lint"
128129
docs:
129-
needs: get_nox_data
130+
needs: nox_data
130131
runs-on: ubuntu-latest
131132
steps:
132133
- uses: actions/checkout@v4
133-
- name: Set up Python ${{ needs.get_nox_data.outputs.docs_python_version }}
134+
- name: Set up Python ${{ needs.nox_data.outputs.docs_python_version }}
134135
uses: actions/setup-python@v5
135136
with:
136-
python-version: ${{ fromJSON(needs.get_nox_data.outputs.docs_python_version) }}
137+
python-version: ${{ fromJSON(needs.nox_data.outputs.docs_python_version) }}
137138
- name: Install Nox-under-test
138139
run: |
139140
python -m pip install --disable-pip-version-check .

0 commit comments

Comments
 (0)