-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,20 +23,14 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache Python | ||
uses: actions/[email protected] | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ github.sha }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
${{ matrix.pip }} install --user --upgrade pip | ||
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11" | ||
${{ matrix.pip }} --no-cache-dir install --user -r requirements.txt | ||
- name: Show python dependencies | ||
run: | | ||
${{ matrix.python }} --version | ||
${{ matrix.pip }} freeze | ||
|
@@ -71,25 +65,24 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Set up Python 2.7 | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 2.7 | ||
|
||
- name: Cache Python Dependencies | ||
uses: actions/[email protected] | ||
id: cache | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-pip-2.7-${{ github.sha }} | ||
python-version: 3.8 | ||
|
||
- name: Install python dependencies | ||
uses: ./.github/actions/install-python-dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
pip --no-cache-dir install --user setuptools wheel "urllib3==1.25.11" | ||
pip --no-cache-dir install --user -r requirements.txt | ||
- name: Build package | ||
run: python setup.py sdist bdist_wheel | ||
run: | | ||
mkdir clean-build | ||
python setup.py sdist bdist_wheel --universal --dist-dir ./clean-build | ||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} | ||
packages_dir: clean-build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters