Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
CI: Remove unnecessary package installations, pip versions
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 19, 2024
1 parent a6073ef commit 5776011
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
pip: ["pip==21.2", "pip~=22.0"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Fetch all tags (for setuptools_scm to work)
run: |
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
- uses: actions/cache@v4
with:
path: $HOME/.cache/pip
key: pip-cache-v1
Expand All @@ -39,7 +38,7 @@ jobs:
run: |
python -m venv /tmp/buildenv
source /tmp/buildenv/bin/activate
pip install -U build hatch hatchling pip twine docutils
pip install -U build hatch pip twine
python -m build -s -w
python -m twine check dist/eddymotion-*
Expand All @@ -60,7 +59,7 @@ jobs:
run: |
python -m venv /tmp/pip
source /tmp/pip/bin/activate
python -m pip install -U build hatch hatchling pip twine docutils
pip install -U pip
python -m pip install .
INSTALLED_VERSION=$(python -c 'import eddymotion as em; print(em.__version__, end="")')
echo "VERSION: \"${THISVERSION}\""
Expand All @@ -71,7 +70,7 @@ jobs:
run: |
python -m venv /tmp/install_sdist
source /tmp/install_sdist/bin/activate
python -m pip install -U build hatch hatchling pip twine docutils
pip install -U pip
python -m pip install /tmp/package/eddymotion*.tar.gz
INSTALLED_VERSION=$(python -c 'import eddymotion as em; print(em.__version__, end="")')
echo "VERSION: \"${THISVERSION}\""
Expand All @@ -82,7 +81,7 @@ jobs:
run: |
python -m venv /tmp/install_wheel
source /tmp/install_wheel/bin/activate
python -m pip install -U build hatch hatchling pip twine docutils
pip install -U pip
python -m pip install /tmp/package/eddymotion*.whl
INSTALLED_VERSION=$(python -c 'import eddymotion as em; print(em.__version__, end="")')
echo "INSTALLED: \"${INSTALLED_VERSION}\""
Expand Down

0 comments on commit 5776011

Please sign in to comment.