bump sqla, asyncpg versions (#72) #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit & Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
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 | |
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 |