Skip to content

Check on Python 3.11 #244

Check on Python 3.11

Check on Python 3.11 #244

Workflow file for this run

name: Test the project
on:
push:
branches-ignore:
- master
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04,ubuntu-22.04,ubuntu-24.04,macos-14]
runs-on: ${{matrix.os}}
env:
OS: ${{matrix.os}}
BUILD_PYTHON_VERSION: '3.11'
defaults:
run:
shell: bash
steps:
- name: Checkout PyReindexer
uses: actions/checkout@v4
- name: Install Reindexer-Dev\Server (MacOS)
if: startsWith(matrix.os, 'macos')
run: |
brew tap restream/reindexer
brew install reindexer
- name: Install Reindexer-Dev\Server (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
curl https://repo.reindexer.io/RX-KEY.GPG | sudo apt-key add
if [[ $OS == ubuntu-20.04 ]]; then
echo 'deb https://repo.reindexer.io/ubuntu-focal /' | sudo tee -a /etc/apt/sources.list
else
echo 'deb https://repo.reindexer.io/ubuntu-jammy /' | sudo tee -a /etc/apt/sources.list
fi
sudo apt-get update -y
sudo apt-get install -y libunwind-dev
sudo apt-get install -y reindexer-dev
sudo apt-get install -y reindexer-server
- name: Set up Python ${{ env.BUILD_PYTHON_VERSION }}
uses: actions/setup-python@v5
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
with:
python-version: ${{ env.BUILD_PYTHON_VERSION }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools build
- name: Prepare Test Environment
run: python -m pip install -r requirements.txt
- name: Build PyReindexer
run: |
python -m build
pip install .
- name: Test
run: |
cd pyreindexer
$GITHUB_WORKSPACE/.github/workflows/test.sh