Skip to content

Commit

Permalink
Keep updated pip
Browse files Browse the repository at this point in the history
  • Loading branch information
classiqdor committed Nov 28, 2024
1 parent 0885006 commit 3b2b3c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ on:
branches:
- dev
- main
- cache_ci_pip
pull_request_target: # Trigger the workflow on pull requests targeting the specific branch
# Note: `pull_request_target` ensures that the tests run in the context of the `main` branch, not in the user's fork.
branches:
- dev
- main
- cache_ci_pip

workflow_dispatch:

Expand Down Expand Up @@ -112,14 +110,15 @@ jobs:
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
set -e
python -m pip install -U pip
# The `--pre` allows the installation of pre-release versions of packages (needed for Dev)
python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt
#
# Setup Environment
#
# A bunch of if-else. Might move to an action
# A bunch of if-else.
# Decide environment based on the target branch (for both push and PR events)
- name: Set environment based on target branch
run: |
Expand Down

0 comments on commit 3b2b3c5

Please sign in to comment.