diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-12-23 08:42:11 +0100 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-12-23 08:42:11 +0100 |
commit | 72114375e7b7a43d7c0490e1a410498f3a8aa0d4 (patch) | |
tree | 2e859dc3608b151cd6ebf36a695d4c84cfffe702 /.github | |
parent | 35c73a709982c61e35ae61217b5a62c59de5fcbe (diff) | |
download | jsonschema-72114375e7b7a43d7c0490e1a410498f3a8aa0d4.tar.gz |
Use runner, which always exists even if we are not matrixed.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
-rw-r--r-- | .github/workflows/packaging.yml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 792ba16..ce3c76a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,10 +135,10 @@ jobs: run: python -m pip install -U pip setuptools - name: Install dependencies run: sudo apt-get install -y libenchant-dev libxml2-dev libxslt-dev - if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version.toxenv, 'docs-') + if: runner.os == 'Linux' && startsWith(matrix.python-version.toxenv, 'docs-') - name: Install dependencies run: brew install enchant - if: startsWith(matrix.os, 'mac') && startsWith(matrix.python-version.toxenv, 'docs-') + if: runner.os == 'macOS' && startsWith(matrix.python-version.toxenv, 'docs-') - name: Install tox run: python -m pip install tox tox-venv - name: Run tox diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index bdc1b0a..366a0ae 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -31,7 +31,7 @@ jobs: name: dist-${{ matrix.os }}-${{ matrix.python-version }} path: dist - name: Publish package - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python-version == 'pypy3' && startsWith(matrix.os, 'ubuntu') + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python-version == 'pypy3' && runner.os == 'Linux' uses: pypa/gh-action-pypi-publish@master with: user: __token__ |