Skip to content

Commit

Permalink
update contribute file
Browse files Browse the repository at this point in the history
  • Loading branch information
laluka committed Sep 9, 2024
1 parent 455c8d1 commit 78e1662
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Note: This file is a work in progress.
# Code Cleanup
pre-commit run --all-files
# Run tox tests

export PATH="$HOME/.local/share/mise/shims:$PATH"
pdm run tox run-parallel
# Ensure no regression is pushed
Expand All @@ -27,24 +28,24 @@ git push --tags
## Github Action Release

- Visit https://github.com/laluka/bypass-url-parser/actions/workflows/release.yml
- Run Workflow with a version such as `0.4.2` or `0.4.2.a` for alpha tests
- Run Workflow with a version such as `0.4.3` or `0.4.3.a` for alpha tests
- Test the alpha version with the below script, once done, repeat without `.a`

```bash
cd /tmp
export TESTED_VERSION=0.4.2a
pipx install "bypass-url-parser==$TESTED_VERSION"
cd /tmp && virtualenv -p python3 .py3 && source .py3/bin/activate
export TESTED_VERSION=0.4.3a
pip install "bypass-url-parser==$TESTED_VERSION"
bup --version && bup -u https://thinkloveshare.com/ -t 50 -m http_headers_scheme
pipx uninstall bypass-url-parser
pip uninstall bypass-url-parser
bup --version # Should fail

pip install "bypass-url-parser==$TESTED_VERSION"
pipx install -f "bypass-url-parser==$TESTED_VERSION"
bup --version && bup -u https://thinkloveshare.com/ -t 50 -m http_headers_scheme
pip uninstall bypass-url-parser
pipx uninstall bypass-url-parser
bup --version # Should fail

for version in {8..13}; do
docker run --rm -it "python:3.$version" bash -c "pip install bypass-url-parser==$TESTED_VERSION && bup --version && bup -u https://thinkloveshare.com/ -t 50 -m http_headers_scheme"
docker run --net=host --rm -it "python:3.$version" bash -c "pip install bypass-url-parser==$TESTED_VERSION && bup --version && bup -u https://thinkloveshare.com/ -t 50 -m http_headers_scheme"
done
```

Expand Down

0 comments on commit 78e1662

Please sign in to comment.