Skip to content

[FEATURE] Improve CI by refactoring #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/actions/upgrade-windows-pip/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: 'Upgrade Windows Pip'
description: 'Fixes Windows pip issues by upgrading'
author: 'Mr. Walls'
branding:
icon: 'chevron-up'
color: 'yellow'

runs:
using: composite
steps:
- run: python -m pip install --upgrade pip
shell: bash
if: ${{ !cancelled() && runner.os == 'Windows' }}
3 changes: 1 addition & 2 deletions .github/workflows/CI-DOCS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Fix braindead windows ${{ matrix.python-version }} on ${{ matrix.os }}
if: ${{ !cancelled() && runner.os == 'Windows' }}
run: python -m pip install --upgrade pip
uses: ./.github/actions/upgrade-windows-pip
- name: Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
run: |
pip install --upgrade "pip>=24.3.1" "setuptools>=75.0" "wheel>=0.44" "build>=1.2.1";
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
with:
python-version: ${{ matrix.python-version }}
- name: Fix braindead windows ${{ matrix.python-version }} on ${{ matrix.os }}
if: ${{ !cancelled() && runner.os == 'Windows' }}
run: python -m pip install --upgrade pip
uses: ./.github/actions/upgrade-windows-pip
- name: Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
run: make -f Makefile test-reqs || true
- name: Install code-climate tools for ${{ matrix.python-version }} on ${{ matrix.os }}
Expand Down Expand Up @@ -480,7 +479,7 @@
if [ "$OS" == "ubuntu-latest" ] ; then { sudo apt-get update || true ;} ; wait ; { sudo apt-get install --assume-yes python3.10 python3.11 python3.11-venv || echo "::warning file=.github/workflows/Tests.yml,line=482,endLine=482,title=SKIPPED::SKIP Enhanced TOX Tests." ;} ; wait ; fi
- name: Install dependencies for Tox
run: |
pip install --upgrade "pip>=24.3.1" "setuptools>=75.0" "wheel>=0.44" "build>=1.2.1";

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIPPED

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIPPED

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIPPED

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIPPED

SKIP Enhanced TOX Tests.

Check warning on line 482 in .github/workflows/Tests.yml

View workflow job for this annotation

GitHub Actions / TOX

SKIPPED

SKIP Enhanced TOX Tests.
pip install --upgrade -r ./requirements.txt ;
pip install --upgrade -r ./tests/requirements.txt || true ;
pip install --upgrade -r ./docs/requirements.txt || true ;
Expand Down
Loading