Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

- name: Cache dependencies
id: pip-cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml', 'requirements.txt', 'setup.cfg', 'setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ steps.setup-python.outputs.python-version }}-
${{ runner.os }}-pip-
cache: 'pip'
# we only use pyproject.toml for dependencies
cache-dependency-path: |
pyproject.toml

- name: Install Qt/OpenGL runtime deps (Ubuntu)
run: |
Expand All @@ -45,7 +42,7 @@ jobs:
libopengl0 \
libxkbcommon-x11-0 \
libxcb-cursor0

- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -54,9 +51,6 @@ jobs:
pip install build
pip install twine

- name: Checkout code
uses: actions/checkout@v4

- name: Build and publish to PyPI
if: ${{ github.event_name == 'push' }}
env:
Expand Down