-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from schireson/dc/version-compatibility
- Loading branch information
Showing
20 changed files
with
859 additions
and
1,004 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: CI | ||
on: push | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
services: | ||
postgres: | ||
image: postgres:11.12 | ||
env: | ||
POSTGRES_DB: dev | ||
POSTGRES_USER: user | ||
POSTGRES_PASSWORD: password | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
pytest-version: ["6.2", "7.0"] | ||
pytest-asyncio-version: ["0.16", "0.19"] | ||
sqlalchemy-version: ["1.3", "1.4"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: "1.2" | ||
|
||
- name: Set up cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-${{ matrix.pytest-asyncio-version }}-${{ matrix.sqlalchemy-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
run: poetry run make install | ||
|
||
- name: Install specific versions | ||
run: | | ||
poetry run pip install 'sqlalchemy~=${{ matrix.sqlalchemy-version }}' | ||
poetry run pip install 'pytest~=${{ matrix.pytest-version }}' | ||
poetry run pip install 'pytest-asyncio~=${{ matrix.pytest-asyncio-version }}' | ||
- name: Run linters | ||
run: poetry run make lint | ||
|
||
- name: Run tests | ||
run: poetry run make test | ||
|
||
- name: Store test result artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: coverage.xml | ||
|
||
- name: Coveralls | ||
env: | ||
COVERALLS_FLAG_NAME: run-${{ inputs.working-directory }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_PARALLEL: true | ||
run: | | ||
pip install tomli coveralls | ||
coveralls --service=github | ||
finish: | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
pip install tomli coveralls | ||
coveralls --service=github --finish |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[tool:pytest] | ||
pytest_alembic_tests_folder = tests | ||
asyncio_mode = auto |
36 changes: 0 additions & 36 deletions
36
examples/test_default_script_location/test_alternative_script_location/alembic.ini
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
examples/test_default_script_location/test_alternative_script_location/alembic/env.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.