Merge pull request #100 from RedisLabsModules/add_rocky9 #71
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.rst' | |
- '**/*.md' | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 15 | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
name: Python ${{ matrix.python-version }} test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: cache | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ~/.virtualenvs | |
key: poetry-${{ hashFiles('**/poetry.lock') }}-${{matrix.python-version}} | |
restore-keys: | | |
poetry-${{ hashFiles('**/poetry.lock') }}-${{matrix.python-version}} | |
- name: install redis | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install -qy redis | |
- name: run tests | |
run: | | |
pip install poetry | |
pip install -q -r dev_requirements.txt | |
tox | |
- name: build and install the package in this python version | |
run: | | |
poetry build | |
poetry install | |
- name: Upload codecov coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: false | |
token: ${{ secrets.CODECOV_TOKEN }} |