Skip to content

py3.7 removed as min. python version #134

py3.7 removed as min. python version

py3.7 removed as min. python version #134

Workflow file for this run

name: CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
- '0.9'
- '0.10'
- '0.10.*'
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:3-alpine
ports:
- 5672:5672
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
python: [3.8, 3.9, '3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v2
- name: Install os dependencies
run: |
sudo apt-get install -y libffi-dev libffi-dev bc
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- name: Set Jasmin release version in env
run: |
echo "JASMIN_RELEASE=$(python setup.py --version)" >> $GITHUB_ENV
echo "Building Jasmin ${{ env.JASMIN_RELEASE }}"
- name: Install pip
run: python -m pip install --upgrade pip
- name: Install production dependencies
run: pip install -r ./requirements.txt
- name: Install test dependencies
run: pip install -r ./requirements-test.txt
- name: Pre-test preps
run: |
sudo mkdir -p /var/log/jasmin /etc/jasmin/resource /etc/jasmin/store
sudo cp ./misc/config/*.cfg /etc/jasmin/
sudo cp ./misc/config/resource/* /etc/jasmin/resource/
sudo chmod -R 777 /var/log/jasmin /etc/jasmin/store
chmod +x ./misc/pylint/run.sh
- name: Run pylint checks
run: ./misc/pylint/run.sh
- name: Run twisted tests with coverage
run: coverage run --source=jasmin -m twisted.trial tests
- name: Coveralls.io synchronization
if: ${{ env.GITHUB_TOKEN }}
run: coveralls
- name: Build the html docs
run: cd misc/doc;make html;cd ../../