Skip to content

Commit

Permalink
Merge pull request #213 from Aiven-Open/nicois/test-multiple-fedora-c…
Browse files Browse the repository at this point in the history
…onfigurations

Test multiple fedora configurations
  • Loading branch information
kmichel-aiven authored Apr 15, 2024
2 parents e82de64 + 8bc03d5 commit 912dd4c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,33 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
fedora-version: ["38", "39"]

include:
- fedora-version: "38"
python-version: "3.11"
- fedora-version: "39"
python-version: "3.12"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Install dependencies
run: make build-dep-ubuntu test-dep-ubuntu
- name: Install dependencies
run: make build-dep-ubuntu test-dep-ubuntu

- name: Set up Python ${{ matrix.python-version }} with caching
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Python ${{ matrix.python-version }} with caching
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install requirements
run: pip install -e '.[cassandra,dev,f38]'
- name: Install requirements
run: pip install -e '.[cassandra,dev,f${{ matrix.fedora-version }}]'

- name: Execute unit-tests
run: make unittest
- name: Execute unit-tests
run: make unittest

- id: upload-codecov
# Third-party action pinned to v2.1.0
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
verbose: true
- id: upload-codecov
# Third-party action pinned to v2.1.0
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
verbose: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ build-dep-fedora:

.PHONY: build-dep-ubuntu
build-dep-ubuntu:
sudo sh -c 'apt-get update && apt-get install -y git libsnappy-dev python3-pip python3-psycopg2 protobuf-compiler'
sudo sh -c 'apt-get update && apt-get install -y git libsnappy-dev python3-pip python3-psycopg2 protobuf-compiler python3-dev'

.PHONY: test-dep-ubuntu
test-dep-ubuntu:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ f39 = [
"msgspec == 0.18.6",
"kazoo == 2.8.0",
"protobuf == 3.19.6",
"pyasyncore == 1.0.2",
"pydantic == 1.10.14",
"pyyaml == 6.0.1",
"requests == 2.28.2",
Expand Down

0 comments on commit 912dd4c

Please sign in to comment.