Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test of versioning #77

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,27 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

- name: test versions
shell: bash -el {0}
run: |
pip uninstall dsps --yes
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1

rm -rf dist/*
python setup.py sdist
pip install --no-deps --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import dsps; assert dsps.__version__ != '0.0.0'"
popd
pip uninstall dsps --yes

rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-deps --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import dsps; assert dsps.__version__ != '0.0.0'"
popd
pip uninstall dsps --yes

python -m pip install -v --no-deps --no-build-isolation -e .
Loading