|
1 | | -# SOURCE: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ |
| 1 | +# Test publishing to PyPI. |
| 2 | +# @see: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ |
2 | 3 | name: Upload Python TEST Package |
3 | 4 |
|
4 | 5 | on: |
|
13 | 14 | jobs: |
14 | 15 | validate: |
15 | 16 | name: Code Quality Assessment |
16 | | - runs-on: ubuntu-20.04 # Use ubuntu-latest when https://github.com/actions/setup-python/issues/544 is fixed |
| 17 | + runs-on: ubuntu-latest |
17 | 18 | strategy: |
18 | 19 | matrix: |
19 | | - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] |
| 20 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
20 | 21 |
|
21 | 22 | steps: |
22 | | - - uses: actions/checkout@v2 |
| 23 | + - uses: actions/checkout@v4 |
23 | 24 | - name: Set up Python ${{ matrix.python-version }} |
24 | | - uses: actions/setup-python@v2 |
| 25 | + uses: actions/setup-python@v5 |
25 | 26 | with: |
26 | 27 | python-version: ${{ matrix.python-version }} |
27 | 28 | - name: Set Environment Variables |
28 | 29 | run: | |
29 | | - echo "${HOME}/.gem/ruby/2.7.0/bin" >> $GITHUB_PATH |
| 30 | + echo "${HOME}/.local/share/gem/ruby/3.0.0/bin" >> $GITHUB_PATH |
30 | 31 | - name: Install dependencies |
31 | 32 | run: | |
32 | | - gem install --user-install hiera-eyaml -v 2.1.0 |
| 33 | + gem install --user-install hiera-eyaml |
33 | 34 | python -m pip install --upgrade pip |
34 | 35 | python -m pip install --upgrade setuptools |
35 | 36 | python -m pip install --upgrade wheel |
|
56 | 57 | needs: validate |
57 | 58 |
|
58 | 59 | steps: |
59 | | - - uses: actions/checkout@v2 |
| 60 | + - uses: actions/checkout@v4 |
60 | 61 | - name: Set up Python 3.9 |
61 | | - uses: actions/setup-python@v2 |
| 62 | + uses: actions/setup-python@v5 |
62 | 63 | with: |
63 | 64 | python-version: '3.9' |
64 | 65 | - name: Install Build Tools |
|
70 | 71 | sed -i -r -e "s/(^__version__[[:space:]]*=[[:space:]]*)("'"'"[[:digit:]](\.[[:digit:]])+)"'"'"/\1\2.RC$(date "+%Y%m%d%H%M%S")"'"'"/" yamlpath/__init__.py |
71 | 72 | python setup.py sdist bdist_wheel |
72 | 73 | - name: Publish Artifacts |
73 | | - uses: pypa/gh-action-pypi-publish@v1.4.2 |
| 74 | + uses: pypa/gh-action-pypi-publish@release/v1 |
74 | 75 | with: |
75 | 76 | user: __token__ |
76 | 77 | password: ${{ secrets.TEST_PYPI_API_TOKEN }} |
|
0 commit comments