Skip to content

Commit

Permalink
Merge pull request #70 from launchableinc/retry-setup-phase
Browse files Browse the repository at this point in the history
Retry setup phase
  • Loading branch information
Konboi committed Oct 12, 2023
2 parents 5b93a49 + ff55393 commit 03968cc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 17 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,25 @@ jobs:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
working-directory: ./e2e
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
max_attempts: 3
timeout_minutes: 5
retry_on: error
command: |
cd ./e2e
python -m pip install wheel
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: Preapre tests
run: |
launchable record build --name ${GITHUB_RUN_ID}
Expand All @@ -42,10 +48,9 @@ jobs:
run: |
python runner.py
working-directory: ./e2e
- uses: actions/checkout@v2
- name: slack notify
if: failure()
uses: rtCamp/action-slack-notify@v2
uses: rtCamp/action-slack-notify@b24d75fe0e728a4bf9fc42ee217caa686d141ee8 # v2.2.1
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON_EMOJI: ":rotating_light:"
Expand Down
26 changes: 17 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,31 @@ jobs:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: 1.8
java-version: 8
distribution: 'adopt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
pip install -r requirements.txt
pip install -e .
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
with:
max_attempts: 3
timeout_minutes: 5
retry_on: error
command: |
# see: https://github.com/pypa/pip/issues/11972
python -m pip install wheel
python -m pip install --upgrade pip
pip install -r test-requirements.txt
pip install -r requirements.txt
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit 03968cc

Please sign in to comment.