Skip to content

Add 4000 MB to image #375

Add 4000 MB to image

Add 4000 MB to image #375

Workflow file for this run

name: Lint and run Python tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Lint with ruff
run: |
ruff .
- name: Test with pytest
run: |
python -m pytest
build_image:
runs-on: ubuntu-latest
steps:
- name: Check disk space on runner
run: |
echo "Disk space usage on GitHub Runner:"
df -h
- uses: pguyot/arm-runner-action@v2
id: build_image
with:
base_image: raspios_lite:2022-04-04
image_additional_mb: 4000
commands: |
echo "Disk space usage:"
df -h
echo "Current directory size:"
du -sh .
echo "Update!"
sudo apt update
echo "Install!"
sudo apt install -y git firefox-esr xvfb portaudio19-dev
sudo apt install libatlas-base-dev redis-server espeak
sudo apt install rustc
sudo apt install python3-dev
echo "More setup!"
mkdir -p /home/pi/code/github/dbieber
cd /home/pi/code/github/dbieber
git clone https://github.com/dbieber/GoNoteGo.git
cd GoNoteGo
# Checkout the specific commit
git checkout $GITHUB_SHA
cp gonotego/settings/secure_settings_template.py gonotego/settings/secure_settings.py
echo "Manually edit secure_settings.py to configure your settings."
mkdir /home/pi/secrets
echo "Manually transfer google_credentials.json to /home/pi/secrets."
- name: Compress the release image
run: |
mv ${{ steps.build_image.outputs.image }} my-release-image.img
xz -0 -T 0 -v my-release-image.img
- name: Upload release image
uses: actions/upload-artifact@v2
with:
name: Release image
path: my-release-image.img.xz