Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Aug 26, 2023
1 parent 2eeb91d commit 2871d27
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: Install dependencies
run: |
sudo apt install libpq-dev
python -m pip install --upgrade pip
pip install .
pip install "sphinx>=4.4,<5"
pip install "sphinx>=4.5,<5"
pip install "cloud_sptheme>=1.10,<2"
- name: Create docs with Sphinx
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ on:
jobs:
checks:
name: Quality checks run
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install tox
run: pip install tox
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: Run quality checks
run: tox -e flake8,docs
timeout-minutes: 5
22 changes: 12 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
tests:
name: Unit tests run
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

strategy:
fail-fast: false
Expand All @@ -22,15 +22,17 @@ jobs:
- {python: "3.8", postgres: "12"}
- {python: "3.9", postgres: "13"}
- {python: "3.10", postgres: "14"}
- {python: "3.11", postgres: "15"}

# Opposite extremes of the supported Py/PG range, other architecture
- {python: "2.7", postgres: "14", architecture: "x86"}
- {python: "3.5", postgres: "13", architecture: "x86"}
- {python: "3.6", postgres: "12", architecture: "x86"}
- {python: "3.7", postgres: "11", architecture: "x86"}
- {python: "3.8", postgres: "10", architecture: "x86"}
- {python: "3.9", postgres: "9.6", architecture: "x86"}
- {python: "3.10", postgres: "9.3", architecture: "x86"}
- {python: "2.7", postgres: "15", architecture: "x86"}
- {python: "3.5", postgres: "14", architecture: "x86"}
- {python: "3.6", postgres: "13", architecture: "x86"}
- {python: "3.7", postgres: "12", architecture: "x86"}
- {python: "3.8", postgres: "11", architecture: "x86"}
- {python: "3.9", postgres: "10", architecture: "x86"}
- {python: "3.10", postgres: "9.6", architecture: "x86"}
- {python: "3.11", postgres: "9.3", architecture: "x86"}

env:
PYGRESQL_DB: test
Expand All @@ -54,10 +56,10 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install tox
run: pip install tox
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Run tests
Expand Down

0 comments on commit 2871d27

Please sign in to comment.