Skip to content

Commit

Permalink
Run tests and lint in parallel (flyteorg#350)
Browse files Browse the repository at this point in the history
* Run tests and lint in parallel

Signed-off-by: Kevin Su <[email protected]>

* Run tests and lint in parallel

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* test

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

* lint

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored May 19, 2023
1 parent 639fbf0 commit f32f07f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions flyteplugins/.github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
tests-lint:
name: Run tests and lint
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -61,5 +61,16 @@ jobs:
file: coverage.txt
flags: unittests
fail_ci_if_error: false
lint:
name: Run lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Lint
run: make install && make lint
15 changes: 13 additions & 2 deletions flyteplugins/.github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Pull Request
on: pull_request

jobs:
tests-lint:
name: Run tests and lint
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,6 +21,17 @@ jobs:
file: coverage.txt
flags: unittests
fail_ci_if_error: false

lint:
name: Run lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Lint
run: make install && make lint

Expand Down

0 comments on commit f32f07f

Please sign in to comment.