Skip to content

Commit

Permalink
Merge pull request #255 from jantman/plaid-acceptance
Browse files Browse the repository at this point in the history
Acceptance tests for Plaid Link, and misc fixes
  • Loading branch information
jantman committed Dec 13, 2022
2 parents 203b1b5 + 5115bf6 commit 7c7909d
Show file tree
Hide file tree
Showing 16 changed files with 758 additions and 605 deletions.
53 changes: 52 additions & 1 deletion .github/workflows/run-tox-suite.yml
Expand Up @@ -36,6 +36,7 @@ jobs:
run: tox -e ${{ github.job }}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results-and-coverage-${{ github.job }}
path: |
Expand Down Expand Up @@ -109,7 +110,7 @@ jobs:
run: python dev/setup_test_db.py
- name: Run tests
run: tox -e ${{ github.job }}
acceptance310:
acceptance:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -144,6 +145,7 @@ jobs:
run: tox -e ${{ github.job }}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results-and-coverage-${{ github.job }}
if-no-files-found: ignore
Expand All @@ -158,6 +160,53 @@ jobs:
files: ./coverage-acceptance.xml
name: coverage-${{ github.job }}
fail_ci_if_error: true
plaid:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
DB_CONNSTRING: 'mysql+pymysql://root:dbroot@127.0.0.1:13306/budgettest?charset=utf8mb4'
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: '13306'
MYSQL_USER: root
MYSQL_PASS: dbroot
MYSQL_DBNAME: budgettest
MYSQL_DBNAME_LEFT: alembicLeft
MYSQL_DBNAME_RIGHT: alembicRight
PLAID_CLIENT_ID: ${{ secrets.PLAID_CLIENT_ID }}
PLAID_COUNTRY_CODES: ${{ secrets.PLAID_COUNTRY_CODES }}
PLAID_ENV: ${{ secrets.PLAID_ENV }}
PLAID_PRODUCTS: ${{ secrets.PLAID_PRODUCTS }}
PLAID_PUBLIC_KEY: ${{ secrets.PLAID_PUBLIC_KEY }}
PLAID_SECRET: ${{ secrets.PLAID_SECRET }}
services:
mariadb:
image: 'mariadb:10.4.7'
ports:
- 13306:3306
env:
MYSQL_ROOT_PASSWORD: dbroot
MYSQL_ROOT_HOST: '%'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install tox pymysql
- name: Setup test DB
run: python dev/setup_test_db.py
- name: Run tests
run: tox -e ${{ github.job }}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results-and-coverage-${{ github.job }}
if-no-files-found: ignore
path: |
results/
docker:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -193,6 +242,7 @@ jobs:
run: tox -e ${{ github.job }}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results-and-coverage-${{ github.job }}
if-no-files-found: ignore
Expand Down Expand Up @@ -235,6 +285,7 @@ jobs:
run: tox -e ${{ github.job }}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results-and-coverage-${{ github.job }}
if-no-files-found: ignore
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -31,6 +31,8 @@ Unreleased Changes
* Add ``git`` to Docker image.
* Move testing and runtime to Python 3.10, and get all test environments running successfully.
* Move CI from TravisCI to GitHub Actions and remove all traces of TravisCI.
* Add acceptance test coverage of the Plaid Link process.
* Updates for ``tox`` 4.0.6.

1.0.0 (2018-07-07)
------------------
Expand Down
270 changes: 0 additions & 270 deletions bin/t

This file was deleted.

1 change: 0 additions & 1 deletion bin/ta

This file was deleted.

13 changes: 0 additions & 13 deletions biweeklybudget/flaskapp/static/js/plaid_test.js

This file was deleted.

0 comments on commit 7c7909d

Please sign in to comment.