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