Skip to content

Commit e535107

Browse files
Version change (#172)
* version change * accounting for the leading v in version tag
1 parent 7186383 commit e535107

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/pypi.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
venv-sdist/bin/python -m pip install numpy
3131
venv-sdist/bin/python -m pip install ../dist/pymc-experimental*.tar.gz
3232
echo "Checking import and version number (on release)"
33-
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
33+
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == 'v${{ github.ref_name[1:] }}' if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
3434
cd ..
3535
- name: Check the bdist installs and imports
3636
run: |
37-
mkdir -p test-bdist
38-
cd test-bdist
39-
python -m venv venv-bdist
40-
venv-bdist/bin/python -m pip install ../dist/pymc_experimental*.whl
41-
echo "Checking import and version number (on release)"
42-
venv-bdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}' if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
43-
cd ..
37+
mkdir -p test-bdist
38+
cd test-bdist
39+
python -m venv venv-bdist
40+
venv-bdist/bin/python -m pip install ../dist/pymc_experimental*.whl
41+
echo "Checking import and version number (on release)"
42+
venv-bdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name[1:] }}' if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
43+
cd ..
4444
- uses: actions/upload-artifact@v3
4545
with:
4646
name: artifact

0 commit comments

Comments
 (0)