Test against Python 3.12 #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7"] | |
beanstalkd-version: ["1.13", "1.12"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install beanstalkd ${{ matrix.beanstalkd-version }} | |
env: | |
BEANSTALKD_VERSION: ${{ matrix.beanstalkd-version }} | |
run: | | |
wget https://github.com/beanstalkd/beanstalkd/archive/v${BEANSTALKD_VERSION}.tar.gz | |
tar -xzvf v${BEANSTALKD_VERSION}.tar.gz | |
pushd beanstalkd-${BEANSTALKD_VERSION} && make && sudo make install && popd | |
- name: Install Python dependencies | |
run: | | |
pip install pytest | |
pip install . | |
- name: Run tests | |
run: make test |