@@ -31,31 +31,33 @@ jobs:
3131 python-version : ${{ env.PYTHON_VERSION }}
3232 architecture : x64
3333
34- - uses : awalsh128/cache-apt-pkgs-action@latest
34+ - name : APT install archivebox dev + run dependencies
35+ uses : awalsh128/cache-apt-pkgs-action@latest
3536 with :
3637 packages : ripgrep build-essential python3-dev python3-setuptools libssl-dev libldap2-dev libsasl2-dev zlib1g-dev libatomic1 gnupg2 curl wget python3-ldap python3-msgpack python3-mutagen python3-regex python3-pycryptodome procps
3738 version : 1.0
3839
39- - name : Install uv build dependencies
40+ - name : UV install archivebox dev + run sub- dependencies
4041 run : uv sync --frozen --all-extras --no-install-project --no-install-workspace
4142
42- - name : Build package
43+ - name : UV build archivebox and archivebox/pkgs/* packages
4344 run : |
4445 uv build --all
4546
46- - name : Publish package distributions to PyPI
47+ - name : Publish new package wheels and sdists to PyPI
4748 uses : pypa/gh-action-pypi-publish@release/v1
49+ with :
50+ password : ${{ secrets.PYPI_PAT_SECRET }}
4851
52+ - name : UV install archivebox and archivebox/pkgs/* locally for tests
53+ run : uv sync --frozen --all-extras
4954
50- # - name: Install from build
51- # run: uv pip install ./dist/*.whl
52-
53- # - name: Add some links to test
54- # run: |
55- # mkdir data && cd data
56- # archivebox init
57- # archivebox add 'https://example.com'
58- # archivebox version
59- # archivebox status
60-
55+ - name : UV run archivebox init + archivebox version
56+ run : |
57+ mkdir -p data && cd data
58+ uv run archivebox init \
59+ && uv run archivebox version
60+ # && uv run archivebox add 'https://example.com' \
61+ # && uv run archivebox status \
62+ # || (echo "UV Failed to run archivebox!" && exit 1)
6163
0 commit comments