Skip to content

Commit

Permalink
CI: pass python version to ci.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jun 26, 2021
1 parent c474767 commit dab9bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/ci.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euox pipefail

export PYTHON_VERSION=$1

python -m pip install --no-use-pep517 --no-deps --disable-pip-version-check -e .
pytest -v tests

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
key: hypothesisDB ${{ matrix.PYTHON_VERSION }}
- name: Run the unittests
shell: bash -x -l {0}
run: ./.github/ci.sh
run: ./.github/ci.sh ${{ matrix.PYTHON_VERSION }}
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.PYTHON_VERSION == '3.6'
uses: pypa/gh-action-pypi-publish@v1.4.2
Expand Down

0 comments on commit dab9bf0

Please sign in to comment.