Skip to content

Commit a1fb42c

Browse files
[FEATURE] Helper action to upgrade braindead windows in CI (- WIP #210 -)
Additions with file .github/actions/upgrade-windows-pip/action.yml: * new helper for Windows-specific pip upgrade step implemented as seperate action now. Changes in file .github/workflows/Tests.yml: * simplify the config by using the new DRY action.
1 parent f099ec5 commit a1fb42c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 'Upgrade Windows Pip'
3+
description: 'Fixes Windows pip issues by upgrading'
4+
author: 'Mr. Walls'
5+
branding:
6+
icon: 'chevron-up'
7+
color: 'yellow'
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- run: python -m pip install --upgrade pip
13+
shell: bash
14+
if: ${{ !cancelled() && runner.os == 'Windows' }}

.github/workflows/Tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ jobs:
9191
with:
9292
python-version: ${{ matrix.python-version }}
9393
- name: Fix braindead windows ${{ matrix.python-version }} on ${{ matrix.os }}
94-
if: ${{ !cancelled() && runner.os == 'Windows' }}
95-
run: python -m pip install --upgrade pip
94+
uses: ./.github/actions/upgrade-windows-pip
9695
- name: Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
9796
run: make -f Makefile test-reqs || true
9897
- name: Install code-climate tools for ${{ matrix.python-version }} on ${{ matrix.os }}

0 commit comments

Comments
 (0)