Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbader committed Nov 2, 2024
1 parent df24b59 commit 7a0f843
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# downloading gradle multiple times in parallel can yield to connection errors
- name: "3. Cache gradle distribution"
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper/dists
key: tests-${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: "3.1 Cache gradle packages"
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: tests-${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
- name: "3. Install dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements/dev-all.txt
- name: "4. Setup pip"
- name: "4. Install libomp (for LightGBM)"
run: |
./gradlew installPipLatest
. /.github/scripts/libomp-${{ runner.os }}.sh
- name: "6. Attach cache for pip"
- name: "5. Attach cache for pip"
uses: actions/cache@v1
id: cache
with:
path: ~/.cache/pip
key: tests-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements-latest.txt') }}

- name: "7. Tests"
- name: "6. Run tests"
run: |
./gradlew "test_${{matrix.flavour}}"
- name: "8. Codecov upload"
if: ${{ matrix.flavour == 'all' }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
pytest .

0 comments on commit 7a0f843

Please sign in to comment.