Skip to content

Commit 4748435

Browse files
committed
ci(github): always update base env packages pip, setuptools, wheel
1 parent 8fdd582 commit 4748435

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
23+
2324
- name: Set up Python ${{ matrix.python-version }}
2425
uses: actions/setup-python@v5
2526
with:
2627
python-version: ${{ matrix.python-version }}
28+
2729
- uses: actions/cache@v4
2830
with:
2931
path: ~/.cache/pip
@@ -33,6 +35,7 @@ jobs:
3335
3436
- name: Install dependencies
3537
run: |
38+
python -m pip install --upgrade pip setuptools wheel
3639
python -m pip install .[test]
3740
python -m pip install pytest-github-actions-annotate-failures
3841
@@ -44,20 +47,25 @@ jobs:
4447

4548
steps:
4649
- uses: actions/checkout@v4
50+
4751
- name: Set up Python 3.8
4852
uses: actions/setup-python@v5
4953
with:
5054
python-version: 3.8
55+
5156
- name: Install mypy & dev packages
5257
run: |
58+
python -m pip install --upgrade pip setuptools wheel
5359
python -m pip install ".[dev, mypy]"
60+
5461
- name: ruff
5562
run: |
5663
python -m ruff check . \
5764
--config pyproject.toml \
5865
--diff \
5966
--show-source \
6067
--exit-non-zero-on-fix
68+
6169
- name: mypy
6270
run: |
6371
python -m mypy --ignore-missing-imports semantic_release
@@ -83,7 +91,9 @@ jobs:
8391
uses: actions/checkout@v4
8492

8593
- name: Install Ruff
86-
run: python -m pip install ".[dev]"
94+
run: |
95+
python -m pip install --upgrade pip setuptools wheel
96+
python -m pip install ".[dev]"
8797
8898
- name: Format
8999
run: |
@@ -122,6 +132,7 @@ jobs:
122132
with:
123133
fetch-depth: 0
124134
ref: ${{ github.ref_name }}
135+
125136
- name: Python Semantic Release
126137
id: release
127138
uses: ./

.github/workflows/pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
with:
1818
ref: ${{ github.event.pull_request.head.sha }}
1919
fetch-depth: 0
20+
2021
- name: Set up Python ${{ matrix.python-version }}
2122
uses: actions/setup-python@v5
2223
with:
2324
python-version: ${{ matrix.python-version }}
25+
2426
- uses: actions/cache@v4
2527
with:
2628
path: ~/.cache/pip
@@ -30,6 +32,7 @@ jobs:
3032
3133
- name: Install dependencies
3234
run: |
35+
python -m pip install --upgrade pip setuptools wheel
3336
python -m pip install .[test]
3437
python -m pip install pytest-github-actions-annotate-failures
3538
@@ -41,13 +44,17 @@ jobs:
4144

4245
steps:
4346
- uses: actions/checkout@v4
47+
4448
- name: Set up Python 3.8
4549
uses: actions/setup-python@v5
4650
with:
4751
python-version: 3.8
52+
4853
- name: Install mypy & dev packages
4954
run: |
55+
python -m pip install --upgrade pip setuptools wheel
5056
python -m pip install ".[dev, mypy]"
57+
5158
- name: ruff
5259
run: |
5360
python -m ruff check . \
@@ -66,4 +73,5 @@ jobs:
6673
- uses: actions/checkout@v4
6774
with:
6875
fetch-depth: 0
76+
6977
- uses: wagoid/commitlint-github-action@v5

0 commit comments

Comments
 (0)