| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1f30286 commit d2fcc3c
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | - name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
| 1 | + name: 🐍 → 🧪 → 🛠 → 📦 Test, build and publish Python packages to PyPI and TestPyPI | ||
| 2 | 2 | ||
| 3 | 3 | on: push | |
| 4 | 4 | ||
| 5 | 5 | jobs: | |
| 6 | 6 | build-n-publish: | |
| 7 | - name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
| 7 | + name: 🐍 → 🧪 → 🛠 → 📦 Test, build and publish Python packages to PyPI and TestPyPI | ||
| 8 | 8 | runs-on: ubuntu-latest | |
| 9 | 9 | ||
| 10 | 10 | steps: | |
@@ -13,36 +13,53 @@ jobs: | |||
| 13 | 13 | uses: actions/setup-python@v3 | |
| 14 | 14 | with: | |
| 15 | 15 | python-version: "3.9" | |
| 16 | - - name: Install requirements | ||
| 16 | + - name: 🛠 Install dev requirements | ||
| 17 | 17 | run: >- | |
| 18 | 18 | python -m | |
| 19 | 19 | pip install | |
| 20 | 20 | --requirement requirements_dev.txt | |
| 21 | - - name: Run tests | ||
| 21 | + --user | ||
| 22 | + - name: 🧪 Python linting | ||
| 22 | 23 | run: >- | |
| 23 | 24 | python -m | |
| 24 | - pytest | ||
| 25 | - - name: Install pypa/build | ||
| 25 | + pylint | ||
| 26 | + ./src | ||
| 27 | + ./tests | ||
| 28 | + - name: 🧪 Python format checking | ||
| 26 | 29 | run: >- | |
| 27 | 30 | python -m | |
| 28 | - pip install | ||
| 29 | - build | ||
| 30 | - --user | ||
| 31 | - - name: Build a binary wheel and a source tarball | ||
| 31 | + black | ||
| 32 | + ./src | ||
| 33 | + ./tests | ||
| 34 | + -l 120 | ||
| 35 | + - name: 🧪 Python type checking | ||
| 36 | + run: >- | ||
| 37 | + python -m | ||
| 38 | + mypy | ||
| 39 | + --pretty | ||
| 40 | + --show-error-codes | ||
| 41 | + --show-error-context | ||
| 42 | + ./src | ||
| 43 | + ./tests | ||
| 44 | + - name: 🧪 Python testing | ||
| 45 | + run: >- | ||
| 46 | + python -m | ||
| 47 | + pytest | ||
| 48 | + - name: 🧰 Build binary wheel and source tarball | ||
| 32 | 49 | run: >- | |
| 33 | 50 | python -m | |
| 34 | 51 | build | |
| 35 | 52 | --sdist | |
| 36 | 53 | --wheel | |
| 37 | 54 | --outdir dist/ | |
| 38 | - - name: Publish distribution 📦 to Test PyPI | ||
| 55 | + - name: 📦 Publish package to Test PyPI | ||
| 39 | 56 | uses: pypa/gh-action-pypi-publish@release/v1 | |
| 40 | 57 | with: | |
| 41 | 58 | password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
| 42 | 59 | repository_url: https://test.pypi.org/legacy/ | |
| 43 | 60 | verbose: true | |
| 44 | 61 | skip_existing: true | |
| 45 | - - name: Publish distribution 📦 to PyPI | ||
| 62 | + - name: 📦 Publish package to PyPI | ||
| 46 | 63 | if: startsWith(github.ref, 'refs/tags/v') | |
| 47 | 64 | uses: pypa/gh-action-pypi-publish@release/v1 | |
| 48 | 65 | with: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | -c requirements.txt | |
| 2 | 2 | black | |
| 3 | + build | ||
| 3 | 4 | mypy | |
| 4 | 5 | pylint | |
| 5 | 6 | pytest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ attrs==22.1.0 | |||
| 10 | 10 | # via pytest | |
| 11 | 11 | black==22.8.0 | |
| 12 | 12 | # via -r requirements_dev.in | |
| 13 | + build==0.8.0 | ||
| 14 | + # via -r requirements_dev.in | ||
| 13 | 15 | click==8.1.3 | |
| 14 | 16 | # via black | |
| 15 | 17 | coverage[toml]==6.4.4 | |
@@ -31,9 +33,13 @@ mypy-extensions==0.4.3 | |||
| 31 | 33 | # black | |
| 32 | 34 | # mypy | |
| 33 | 35 | packaging==21.3 | |
| 34 | - # via pytest | ||
| 36 | + # via | ||
| 37 | + # build | ||
| 38 | + # pytest | ||
| 35 | 39 | pathspec==0.10.1 | |
| 36 | 40 | # via black | |
| 41 | + pep517==0.13.0 | ||
| 42 | + # via build | ||
| 37 | 43 | platformdirs==2.5.2 | |
| 38 | 44 | # via | |
| 39 | 45 | # black | |
@@ -55,8 +61,10 @@ pytest-cov==3.0.0 | |||
| 55 | 61 | tomli==2.0.1 | |
| 56 | 62 | # via | |
| 57 | 63 | # black | |
| 64 | + # build | ||
| 58 | 65 | # coverage | |
| 59 | 66 | # mypy | |
| 67 | + # pep517 | ||
| 60 | 68 | # pylint | |
| 61 | 69 | # pytest | |
| 62 | 70 | tomlkit==0.11.4 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments