Skip to content

Commit 48dfd72

Browse files
authored
Fix CD actions (#1441)
* Fix CD actions * Skip Build if no relevant changes
1 parent dec92e5 commit 48dfd72

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/CD.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,11 @@ jobs:
1818
environment: package
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
22-
- name: Cache conda
23-
uses: actions/cache@v3
21+
uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
2424
with:
25-
path: ~/conda_pkgs_dir
26-
key: conda-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('environment.yml') }}
27-
- name: Setup Miniconda
28-
uses: conda-incubator/setup-miniconda@v2
29-
with:
30-
auto-update-conda: true
31-
auto-activate-base: false
32-
activate-environment: hcrystalball
3325
python-version: ${{ matrix.python-version }}
34-
use-only-tar-bz2: true
3526
- name: Install from source
3627
# This is required for the pre-commit tests
3728
shell: pwsh

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ on:
1414
- 'setup.py'
1515
pull_request:
1616
branches: ['main']
17+
paths:
18+
- 'flaml/**'
19+
- 'test/**'
20+
- 'notebook/**'
21+
- '.github/workflows/python-package.yml'
22+
- 'setup.py'
1723
merge_group:
1824
types: [checks_requested]
1925

0 commit comments

Comments
 (0)