This repository was archived by the owner on Jul 5, 2023. It is now read-only.
File tree 3 files changed +8
-44
lines changed
3 files changed +8
-44
lines changed Original file line number Diff line number Diff line change 8
8
- main
9
9
workflow_call :
10
10
jobs :
11
- setup :
11
+ linting :
12
12
defaults :
13
13
run :
14
14
shell : bash
@@ -24,33 +24,12 @@ jobs:
24
24
uses : ./setup-action
25
25
with :
26
26
python-version : ${{ matrix.python-version }}
27
- linting :
28
- defaults :
29
- run :
30
- shell : bash
31
- strategy :
32
- matrix :
33
- os : [ubuntu-latest, windows-latest, macos-latest]
34
- python-version : ["3.7", "3.8", "3.9", "3.10"]
35
- needs : setup
36
- runs-on : ${{ matrix.os }}
37
- steps :
38
- - name : Check out repository
39
- uses : actions/checkout@v3
40
- - name : Load cached venv
41
- id : cached-poetry-dependencies
42
- uses : actions/cache@v3
43
- with :
44
- path : .venv
45
- key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
46
27
- name : Run Black
47
28
run : |
48
- source .venv/scripts/activate
29
+ source $VENV
49
30
black --check boostbuild
50
- if : runner.os == 'Windows'
51
31
- name : Run Pylint
52
32
run : |
53
- source .venv/bin/activate
33
+ source $VENV
54
34
pylint --rcfile pyproject.toml boostbuild
55
- if : runner.os != 'Windows'
56
35
Original file line number Diff line number Diff line change 4
4
tags :
5
5
- " v*.*.*"
6
6
jobs :
7
- call-main :
8
- uses : ./.github/workflows/main.yaml
9
7
publish :
10
- needs : call-main
11
- defaults :
12
- run :
13
- shell : bash
14
8
runs-on : ubuntu-latest
15
9
steps :
16
10
- name : Check out repository
17
11
uses : actions/checkout@v3
18
- - name : Install Poetry
19
- uses : snok/install-poetry@v1
20
- - name : Load cached venv
21
- id : cached-poetry-dependencies
22
- uses : actions/cache@v3
12
+ - name : Setup project, python and poetry
13
+ uses : ./setup-action
23
14
with :
24
- path : .venv
25
- key : venv-${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}
15
+ python-version : ${{ matrix.python-version }}
26
16
- name : Publish package to PyPi
27
- env :
28
- PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
29
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
30
- run : |
31
- source .venv/bin/activate
32
- boost publish
17
+ run : poetry publish --build --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
33
18
Original file line number Diff line number Diff line change 22
22
uses : actions/cache@v3
23
23
with :
24
24
path : .venv
25
- key : venv-${{ runner.os }}-${{ inputs .python-version }}-${{ hashFiles('**/poetry.lock') }}
25
+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs .python-version }}-${{ hashFiles('**/poetry.lock') }}
26
26
- name : Install dependencies
27
27
shell : bash
28
28
run : poetry install --no-interaction --no-root
You can’t perform that action at this time.
0 commit comments