Skip to content

Commit

Permalink
feat: add github action
Browse files Browse the repository at this point in the history
fix: add pre-requisites for python packages 3.11/3.12

feat: github actions check python version, use matrix

fix: Docker run chain

fix: gihtub build.yml yaml syntaxe

fix: githab version support problem dix syntax

feat: test with tox

fix: remove pythoon 3.8 version from test supports

feat: supports continue-on-error
  • Loading branch information
herve.le-bars committed Mar 16, 2024
1 parent 46b2eff commit bf57d4a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/version_supports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: version supports

on:
pull_request:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test package with tox
run: tox -vv
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ ARG IMAGE_PYTHON=${IMAGE_PYTHON:-python:3.10-slim-bullseye}
FROM ${IMAGE_PYTHON}

RUN apt-get update &&\
apt-get -y install wget gcc &&\
apt-get -y install wget &&\
apt-get install -y rsyslog &&\
# added for python 3.11/12 compliance
apt-get install -y g++ libgeos-dev
# prerequisites for python 3.11
apt-get install -y gcc g++ &&\
# prerequisites for python 3.12
apt-get install -y libgeos-dev

# Define working directory
ARG PROJECT_DIR=/project
Expand Down

0 comments on commit bf57d4a

Please sign in to comment.