This repository was archived by the owner on Jul 5, 2023. It is now read-only.
File tree 2 files changed +27
-7
lines changed
2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- main
9
9
workflow_call :
10
+ outputs :
11
+ venv :
12
+ description : " Python virtual environment"
13
+ value : ${{ jobs.setup.outputs.venv }}
10
14
jobs :
11
- linting :
15
+ setup :
16
+ defaults :
17
+ run :
18
+ shell : bash
12
19
strategy :
13
20
matrix :
14
21
os : [ubuntu-latest, windows-latest, macos-latest]
15
22
python-version : ["3.7", "3.8", "3.9", "3.10"]
16
- defaults :
17
- run :
18
- shell : bash
23
+ outputs :
24
+ venv : ${{ steps.generate-outputs.outputs.venv }}
19
25
runs-on : ${{ matrix.os }}
20
26
steps :
21
27
- name : Check out repository
@@ -24,12 +30,26 @@ jobs:
24
30
uses : ./setup-action
25
31
with :
26
32
python-version : ${{ matrix.python-version }}
33
+ - name : Generate outputs
34
+ id : generate-outputs
35
+ run : echo "venv=$VENV" >> $GITHUB_OUTPUT
36
+ linting :
37
+ defaults :
38
+ run :
39
+ shell : bash
40
+ strategy :
41
+ matrix :
42
+ os : [ubuntu-latest, windows-latest, macos-latest]
43
+ python-version : ["3.7", "3.8", "3.9", "3.10"]
44
+ needs : setup
45
+ runs-on : ${{ matrix.os }}
46
+ steps :
27
47
- name : Run Black
28
48
run : |
29
- source $VENV
49
+ source ${{ needs.setup.outputs.venv }}
30
50
black --check boostbuild
31
51
- name : Run Pylint
32
52
run : |
33
- source $VENV
53
+ source ${{ needs.setup.outputs.venv }}
34
54
pylint --rcfile pyproject.toml boostbuild
35
55
Original file line number Diff line number Diff line change 18
18
PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
19
19
PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
20
20
run : |
21
- source $VENV
21
+ source ${{ needs.call-main.outputs.venv }}
22
22
boost publish
23
23
You can’t perform that action at this time.
0 commit comments