This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: integration tests are not run in CI (#1221)
Solution: - make it run - add python linter job for the python codes - fix nix expression to build ethermintd add file diff condition add gomod2nix check
- Loading branch information
Showing
10 changed files
with
211 additions
and
87 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203 | ||
exclude = .git,__pycache__,node_modules,.direnv |
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 |
---|---|---|
|
@@ -45,3 +45,32 @@ jobs: | |
- uses: articulate/[email protected] | ||
# Check only if there are differences in the source code | ||
if: env.GIT_DIFF | ||
python-lint: | ||
name: Run flake8 on python integration tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v15 | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: ethermint | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.py | ||
- run: | | ||
nix-shell -I nixpkgs=./nix -p test-env --run "make lint-py" | ||
if: env.GIT_DIFF | ||
gomod2nix: | ||
name: Check gomod2nix.toml file is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v15 | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: ethermint | ||
- name: run gomod2nix | ||
run: | | ||
nix run -f ./nix gomod2nix | ||
git diff --no-ext-diff --exit-code |
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 |
---|---|---|
|
@@ -111,6 +111,14 @@ jobs: | |
with: | ||
name: ethermint | ||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.sol | ||
**/**.go | ||
go.mod | ||
go.sum | ||
tests/integration_tests/** | ||
- name: Run integration tests | ||
run: make run-integration-tests | ||
if: env.GIT_DIFF | ||
|
@@ -202,4 +210,4 @@ jobs: | |
- name: Test simulation after import | ||
run: | | ||
make test-sim-after-import | ||
if: env.GIT_DIFF | ||
if: env.GIT_DIFF |
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
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
Oops, something went wrong.