From 01585e055f197c5d05506ee3e696455d9c97c03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Tue, 5 May 2020 10:04:29 +0200 Subject: [PATCH] Make sure GitHub page deploy is not done on scheduled runs (#231) --- .github/workflows/webviz-config.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/webviz-config.yml b/.github/workflows/webviz-config.yml index ca428bee..7538928b 100644 --- a/.github/workflows/webviz-config.yml +++ b/.github/workflows/webviz-config.yml @@ -24,31 +24,31 @@ jobs: pandas-version: ['0.24.2', '1.*'] # Necessary as long as RHEL6 is used internally steps: - - name: Checkout commit locally + - name: ๐Ÿ“– Checkout commit locally uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} + - name: ๐Ÿ Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - - name: Install webviz-config with dependencies + - name: ๐Ÿ“ฆ Install webviz-config with dependencies run: | pip install 'pandas==${{ matrix.pandas-version }}' pip install --upgrade pip pip install . - - name: Install test dependencies + - name: ๐Ÿ“ฆ Install test dependencies run: | pip install .[tests] pip install dash[testing] wget https://chromedriver.storage.googleapis.com/$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -q -O -)/chromedriver_linux64.zip unzip chromedriver_linux64.zip - - name: List all installed packages + - name: ๐Ÿงพ List all installed packages run: pip freeze - - name: Check code style & linting + - name: ๐Ÿ•ต๏ธ Check code style & linting if: matrix.pandas-version == '1.*' run: | black --check webviz_config tests setup.py @@ -56,7 +56,7 @@ jobs: bandit -r -c ./bandit.yml webviz_config tests setup.py mypy --package webviz_config --ignore-missing-imports --disallow-untyped-defs --show-error-codes - - name: Run tests + - name: ๐Ÿค– Run tests run: | webviz certificate webviz preferences --theme default @@ -65,7 +65,7 @@ jobs: python build_docs.py popd - - name: Build and deploy Python package + - name: ๐Ÿšข Build and deploy Python package if: github.event_name == 'release' && matrix.python-version == '3.6' && matrix.pandas-version == '1.*' env: TWINE_USERNAME: __token__ @@ -75,8 +75,8 @@ jobs: python setup.py sdist bdist_wheel twine upload dist/* - - name: Update GitHub pages - if: github.ref == 'refs/heads/master' && matrix.python-version == '3.6' && matrix.pandas-version == '1.*' + - name: ๐Ÿ“š Update GitHub pages + if: github.event_name != 'schedule' && github.ref == 'refs/heads/master' && matrix.python-version == '3.6' && matrix.pandas-version == '1.*' run: | cp -R ./docs/_build ../_build