Skip to content

Commit

Permalink
feat: try changing ci to use pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
unRARed committed Dec 7, 2024
1 parent 78f2c52 commit 4704dfa
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,39 @@ permissions:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get install \
build-essential git \
python3-pip python3-venv \
zlib1g-dev libjpeg-dev libtiff5-dev libtiff5-dev \
libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev gstreamer1.0-plugins-base \
gstreamer1.0-plugins-base gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly libgstreamer1.0-dev \
libxine2-ffmpeg libsmpeg-dev libswscale-dev \
libavformat-dev libavcodec-dev libjpeg-dev libtiff5-dev \
libx11-dev libmtdev-dev build-essential libgl1-mesa-dev \
libgles2-mesa-dev pulseaudio lsb-release \
libgl1-mesa-dri libavfilter-dev libavdevice-dev libunwind-dev -y
sudo apt-get install build-essential git curl \
libsqlite3-dev zlib1g-dev libjpeg-dev libtiff5-dev \
libtiff5-dev libsdl2-dev libsdl2-ttf-dev \
libsdl2-image-dev libsdl2-mixer-dev \
gstreamer1.0-plugins-base gstreamer1.0-plugins-base \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
libgstreamer1.0-dev libxine2-ffmpeg libsmpeg-dev \
libswscale-dev libavformat-dev libavcodec-dev \
libjpeg-dev libtiff5-dev libx11-dev libmtdev-dev \
build-essential libgl1-mesa-dev libgles2-mesa-dev \
pulseaudio lsb-release libgl1-mesa-dri libavfilter-dev \
libunwind-dev libavdevice-dev -y
- name: Install app dependencies
run: |
curl https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
pyenv install 3.11.10
pyenv global 3.11.10
pip install --upgrade \
pip setuptools wheel build coveralls pillow
pip install --upgrade Cython==0.29.36
# Install MPF
pip install mpf==0.57
pip install mpf-mc==0.57
pip install mpf==0.57.3
pip install mpf-mc==0.57.1
- name: Test
run: |
source ~/.bash_profile
bin/test

0 comments on commit 4704dfa

Please sign in to comment.