Skip to content

Commit

Permalink
Attempt to accelerate CI by caching python dependencies installation
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed May 21, 2024
1 parent 550551b commit 23047c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ jobs:
- x64
steps:
- uses: actions/checkout@v2
- name: Setup custom python requirements
if: hashFiles('**/requirements.txt', '**/pyproject.toml') == ''
run: |
touch ./requirements.txt
echo "mlflow==2.13.0" > ./requirements.txt
- uses: actions/setup-python@v4
with:
python-version: '3.10.13'
cache: 'pip'
- name: Setup mlflow locally
run: |
pip install mlflow
pip show mlflow
pip install -r ./requirements.txt
python3 /opt/hostedtoolcache/Python/3.10.13/x64/bin/mlflow server --host 0.0.0.0 --port 5000 &
sleep 5
- uses: julia-actions/setup-julia@v1
Expand Down

0 comments on commit 23047c5

Please sign in to comment.