Skip to content

multi-versions, readme #106

multi-versions, readme

multi-versions, readme #106

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 8 * * SUN"
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
default:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
- macos-latest
- macos-11
- macos-12
- macos-13
- macos-14 # M1 CPU
- windows-latest
- windows-2019
- windows-2022
steps:
- uses: actions/checkout@v4
- name: Run setup-postgres
uses: ./
id: postgres
- uses: actions/setup-python@v5
with:
cache: 'pip'
- run: pip install pytest psycopg
- name: Run tests
run: python3 -m pytest -vv test_action.py
env:
CONNECTION_URI: ${{ steps.postgres.outputs.connection-uri }}
EXPECTED_CONNECTION_URI: postgresql://postgres:postgres@localhost:5432/postgres
parametrized:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
- macos-latest
- macos-11
- macos-12
- macos-13
- macos-14 # M1 CPU
- windows-latest
- windows-2019
- windows-2022
steps:
- uses: actions/checkout@v4
- name: Run setup-postgres
uses: ./
with:
username: yoda
password: GrandMaster
database: jedi_order
port: 34837
id: postgres
- uses: actions/setup-python@v5
with:
cache: 'pip'
- run: pip install pytest psycopg
- name: Run tests
run: python3 -m pytest -vv test_action.py
env:
CONNECTION_URI: ${{ steps.postgres.outputs.connection-uri }}
EXPECTED_CONNECTION_URI: postgresql://yoda:GrandMaster@localhost:34837/jedi_order