-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI fix: install task, run httpbin service for tests
- Loading branch information
Tit Petric
committed
Sep 13, 2024
1 parent
5cca3d9
commit d485f5c
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,13 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup CI Tooling | ||
uses: shrink/actions-docker-extract@v3 | ||
with: | ||
image: tykio/ci-tools:latest | ||
path: /usr/local/bin/task | ||
destination: /usr/local/bin | ||
|
||
- name: Install Dependencies and basic hygiene test | ||
id: hygiene | ||
run: | | ||
|
@@ -66,11 +73,9 @@ jobs: | |
- name: Fetch base branch | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: git fetch origin ${{ github.base_ref }} | ||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: ${{ matrix.redis-version }} | ||
|
||
- name: Start test services | ||
run: task services:up | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
|
@@ -88,6 +93,9 @@ jobs: | |
echo "log=$(sed -ze 's/%/%25/g;s/\n/%0A/g' test.log)" >> $GITHUB_OUTPUT | ||
exit $result_code | ||
- name: Stop test services | ||
run: task services:down | ||
|
||
- name: Notify status | ||
if: ${{ failure() && github.event.pull_request.number }} | ||
uses: peter-evans/create-or-update-comment@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters