Skip to content

Commit a37ed5c

Browse files
committed
ci(github-action): update pip when initialize environement
1 parent 2133992 commit a37ed5c

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.github/workflows/bumpversion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python --version
27-
python -m pip install -U poetry
27+
python -m pip install -U pip poetry
2828
- name: Configure repo
2929
run: |
3030
git config --local user.email "action@github.com"

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,14 @@ jobs:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
2222
run: |
23-
python -m pip install --pre -U poetry
23+
python -m pip install -U pip poetry
2424
poetry --version
2525
poetry install
26-
- name: Run tests
26+
- name: Run tests and linters
2727
run: |
2828
git config --global user.email "action@github.com"
2929
git config --global user.name "GitHub Action"
3030
./scripts/test
31-
- name: Check commit
32-
run: |
33-
poetry run python -m commitizen check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} || \
34-
if [ $$? == 3 ] ; then
35-
exit 0;
36-
else
37-
exit 1;
38-
fi
3931
- name: Upload coverage to Codecov
4032
if: runner.os == 'Linux'
4133
uses: codecov/codecov-action@v1.0.3

.github/workflows/pythonpublish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
python-version: '3.x'
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --pre -U poetry mkdocs mkdocs-material
22+
python -m pip install -U pip poetry mkdocs mkdocs-material
2323
poetry --version
2424
poetry install
2525
- name: Publish

0 commit comments

Comments
 (0)