diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..771e475 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev + + - name: Install dependencies from source + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Execute test command from source + run: | + python3 lightyear.py --help \ No newline at end of file diff --git a/README.md b/README.md index b0c2258..be68b9e 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ get_image_size($_GET['image']); ## Setup +The following dependencies are required to build the XML library (lxml). + +```bash +sudo apt update +sudo apt-get install -y libxml2-dev libxslt-dev +``` + ```bash $ git clone https://github.com/ambionics/lightyear $ cd lightyear