summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-12-23 08:42:11 +0100
committerJulian Berman <Julian@GrayVines.com>2019-12-23 08:42:11 +0100
commit72114375e7b7a43d7c0490e1a410498f3a8aa0d4 (patch)
tree2e859dc3608b151cd6ebf36a695d4c84cfffe702 /.github
parent35c73a709982c61e35ae61217b5a62c59de5fcbe (diff)
downloadjsonschema-72114375e7b7a43d7c0490e1a410498f3a8aa0d4.tar.gz
Use runner, which always exists even if we are not matrixed.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/packaging.yml2
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__