File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ jobs:
30
30
venv-sdist/bin/python -m pip install numpy
31
31
venv-sdist/bin/python -m pip install ../dist/pymc-experimental*.tar.gz
32
32
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__)"
34
34
cd ..
35
35
- name : Check the bdist installs and imports
36
36
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 ..
44
44
- uses : actions/upload-artifact@v3
45
45
with :
46
46
name : artifact
You can’t perform that action at this time.
0 commit comments