Skip to content

Commit

Permalink
feat: update build.yml to work with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PCain02 committed Nov 12, 2024
1 parent 8f63303 commit 5daeec3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
# Create a job matrix with different OSes
jobs:
build:
# do not allow a build to run for more than 5 minutes
# Do not allow a build to run for more than 5 minutes
timeout-minutes: 5
# Use a matrix strategy to run on multiple OSes and Python versions
runs-on: ${{ matrix.os }}
Expand All @@ -44,11 +44,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Install pip
- name: Install Pip
if: always()
# Install pip and upgrade it if on Linux or macOS
- name: Install and Upgrade Pip
if: runner.os != 'Windows'
run: python -m pip install --no-cache-dir --upgrade pip
# Install pipx and pip dependencies on Windows
- name: Install Pipx and Dependencies
if: runner.os == 'Windows'
run: |
pip install -U pip
python -m pip install --no-cache-dir --upgrade pip
python -m pip install --user pipx
# Install poetry
- name: Install Poetry and Project Dependencies
Expand Down Expand Up @@ -82,10 +86,10 @@ jobs:
with:
format: YYYYMMDD-HH-mm-ss
utcOffset: "-05:00"
# Write the collected GatorGrade data to the designated branch
# Conditionally write collected data to the designated branch on Linux or macOS
- name: Write Collected Data to Designated Branch
if: runner.os != 'Windows'
uses: GatorEducator/[email protected]
if: always()
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
branch: insight
Expand Down

0 comments on commit 5daeec3

Please sign in to comment.