Skip to content

bump sqla, asyncpg versions #96

bump sqla, asyncpg versions

bump sqla, asyncpg versions #96

Workflow file for this run

name: Unit and Integration Tests
on: ["pull_request"]
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Lint
run: pre-commit run --all-files
test-postgres:
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check out repository code
uses: actions/checkout@v2
- name: start postgres & redis
run: |
docker-compose up -d postgres redis
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements-test.txt; fi
- name: Run Tests - postgres
run: |
export ENV=postgres
make test
make test-migrations
test-mysql:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: start mysql & redis
run: |
docker-compose up -d mysql redis
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements-test.txt; fi
- name: Run Tests - mysql
run: |
export ENV=mysql
make test
make test-migrations
# Label of the container job
test-sqlite:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
#container: joshjamison/python38:latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10.8]
# Service containers to run with `container-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Provide the password for postgres
ports:
- 6379:6379
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements-test.txt; fi
- name: Run Tests - Sqlite
run: |
export ENV=sqlite
make test
make test-migrations