Skip to content

Commit

Permalink
Do not run linting and tests on release (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Apr 19, 2024
1 parent def9a93 commit 5631898
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/subsurface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
run: pip freeze

- name: 🕵️ Check code style & linting
if: github.event_name != 'release'
run: |
black --check webviz_subsurface tests setup.py
pylint webviz_subsurface tests setup.py
Expand All @@ -77,6 +78,7 @@ jobs:
mypy --package webviz_subsurface
- name: 🤖 Run tests
if: github.event_name != 'release'
env:
# If you want the CI to (temporarily) run against your fork of the testdada,
# change the value her from "equinor" to your username.
Expand All @@ -93,6 +95,7 @@ jobs:
webviz docs --portable ./docs_build --skip-open
- name: 🐳 Build Docker example image
if: github.event_name != 'release'
run: |
pip install --pre webviz-config-equinor
export SOURCE_URL_WEBVIZ_SUBSURFACE=https://github.com/$GITHUB_REPOSITORY
Expand All @@ -105,13 +108,13 @@ jobs:
popd
- name: 🐳 Update Docker Hub example image
if: github.event_name != 'schedule' && github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
if: github.event_name != 'release' && github.event_name != 'schedule' && github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
run: |
echo ${{ secrets.dockerhub_webviz_token }} | docker login --username webviz --password-stdin
docker push webviz/example_subsurface_image:equinor-theme
- name: 🐳 Update review/test Docker example image
if: github.ref != 'refs/heads/master' && contains(github.event.head_commit.message, '[deploy test]') && matrix.python-version == '3.8'
if: github.event_name != 'release' && github.ref != 'refs/heads/master' && contains(github.event.head_commit.message, '[deploy test]') && matrix.python-version == '3.8'
run: |
docker tag webviz/example_subsurface_image:equinor-theme ${{ secrets.review_docker_registry_url }}/${{ secrets.review_container_name }}
Expand Down

0 comments on commit 5631898

Please sign in to comment.