Skip to content

Commit

Permalink
github: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michamos committed Jan 22, 2024
1 parent 6deeaf6 commit 552fb09
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/

0 comments on commit 552fb09

Please sign in to comment.