Skip to content

Commit

Permalink
Update testing workflow to improve Python and Postgres setup
Browse files Browse the repository at this point in the history
Replaced container-based configurations with explicit Python setup using actions/setup-python. Updated Postgres development dependencies to version 15. Adjusted dependency installation and test environment setup for better consistency and clarity.
  • Loading branch information
gmr committed Feb 9, 2025
1 parent f332cc1 commit 031d2a2
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,31 @@ jobs:
matrix:
python: ["3.11"] #, "3.12", "3.13"]
postgres: [14] #, 15, 16, 17]
container:
image: python:${{ matrix.python }}
env:
NOBOOTSTRAP: true
POSTGRES_URI: postgresql://postgres@postgres:5432/postgres
steps:
- name: Checkout repository
uses: actions/checkout@v1

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

- name: Setup environment
run: apt-get update && apt-get install -y bash cargo gcc git libffi-dev libpq-dev build-essential postgresql postgresql-server-dev-14 rustc tzdata
run: apt-get update && apt-get install -y bash cargo gcc git libffi-dev libpq-dev build-essential postgresql postgresql-server-dev-15 rustc tzdata

- name: Install testing dependencies
run: pip3 install -e '.[dev]'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Setup test/fixture data
run: ci/test-setup

- name: Run tests
run: ci/test
env:
NOBOOTSTRAP: true
POSTGRES_URI: postgresql://postgres@postgres:5432/postgres

- name: Upload Coverage
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit 031d2a2

Please sign in to comment.