Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Caktus fork to current dimagi level #1

Open
wants to merge 333 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
333 commits
Select commit Hold shift + click to select a range
f98ce7c
handle None response
snopoke Mar 5, 2021
ed92aa3
add messaging-events to API
czue Mar 8, 2021
1c26998
add checkpointing
czue Mar 8, 2021
a3fbb7e
Merge pull request #179 from dimagi/cz/messaging-events
czue Mar 9, 2021
32de2b1
add failing test documenting desired behavior
czue Mar 11, 2021
433daef
fix last batch of messaging events
czue Mar 11, 2021
1a2ba09
remove print statement
czue Mar 11, 2021
9908562
extract variable to constant
czue Mar 15, 2021
c6ee572
move condition inside if statement
czue Mar 15, 2021
888f144
Merge pull request #180 from dimagi/cz/sms-error
czue Mar 15, 2021
5076ba4
Change mysql collation and charset from utf8 -> utf8mb4
Charl1996 May 31, 2021
6bbaa7c
Change to _bin
Charl1996 Jun 1, 2021
a643443
Change collation back to 'utf8mb4_unicode_ci'
Charl1996 Jun 7, 2021
6c7f65a
update date filtering params for messaging-event
snopoke Jun 7, 2021
64a226e
remove '@' from password
snopoke Jun 8, 2021
da7ee4d
less verbose output
snopoke Jun 8, 2021
c6c2d58
change param name
snopoke Jun 8, 2021
0dfbc2d
Merge pull request #185 from dimagi/sk/fix-mssql-build
snopoke Jun 9, 2021
76c01a1
Merge branch 'master' into sk/messaging-events-new
snopoke Jun 9, 2021
215c1db
more verbose error logging if debug enabled
snopoke Jun 9, 2021
2f1f679
Merge pull request #186 from dimagi/sk/error-detail
snopoke Jun 10, 2021
ddef74f
Refer user to use utf8mb4 charset
Charl1996 Jun 14, 2021
89e087e
Merge pull request #184 from dimagi/sk/messaging-events-new
snopoke Jun 17, 2021
d0d21b5
Merge pull request #183 from dimagi/cs/SC-1315-mysql-collation-issue
Charl1996 Jun 17, 2021
f78bfa4
total_count may not be present
snopoke Jun 22, 2021
8b50bda
extract vars
snopoke Jun 22, 2021
c9696b4
reformat if
snopoke Jun 22, 2021
7d6a223
default total_count to 'unknown'
snopoke Jun 22, 2021
d476afc
update tests
snopoke Jun 22, 2021
9cbfbf4
update tests
snopoke Jun 22, 2021
3997721
move comment
snopoke Jun 22, 2021
189865f
fix typo
snopoke Jun 22, 2021
5b6030c
Merge pull request #187 from dimagi/sk/fix-key-error
snopoke Jun 22, 2021
89cb6ee
auto-id documentation test
snopoke Jun 24, 2021
a2f3695
comments for how it changes with different code changes
snopoke Jun 24, 2021
a8b49f7
add ref to PR
snopoke Jun 24, 2021
e48e3c8
test value or root expression
snopoke Jun 24, 2021
eb4c43a
update excel query
snopoke Jun 24, 2021
ba850bc
update cli
snopoke Jun 24, 2021
8ac159f
prevent access to non-root referenced fields
snopoke Jun 25, 2021
dfb8f4c
typo
snopoke Jun 25, 2021
c3994cb
update excel query test
snopoke Jun 25, 2021
4d194d2
refactor tests
snopoke Jun 25, 2021
567ac70
replace jsonpath-rw with jsonpath-ng
snopoke Jun 25, 2021
3aa9794
fix tests
snopoke Jun 25, 2021
a06e219
Merge pull request #189 from dimagi/sk/value-or-root
snopoke Jun 25, 2021
0538bad
Merge pull request #190 from dimagi/sk/jsonpath-ng
snopoke Jun 30, 2021
4831e99
use 'date_last_activity' for filtering / ordering of messaging data
snopoke Jul 2, 2021
35157a4
fix tests
snopoke Jul 7, 2021
6043909
Merge pull request #191 from dimagi/sk/date-last-activity
snopoke Jul 7, 2021
3db9c72
add unique function for removing duplicate values when exporting lists
snopoke Jul 15, 2021
ca29be5
Merge pull request #192 from dimagi/sk/uniqe
snopoke Jul 15, 2021
509324d
update docs with 'unique'
snopoke Jul 15, 2021
f66aea7
prompt for username & password before they are needed
snopoke Aug 6, 2021
d43db47
Merge pull request #193 from dimagi/sk/username-password-prompt
snopoke Aug 6, 2021
fd1b18d
FIX: Alembic 1.7.x is breaking migrations
bderenzi Sep 22, 2021
48a5fa4
Allow older versions of alembic as well
bderenzi Sep 22, 2021
0192cdf
Make room for patches on 1.6.x
bderenzi Sep 23, 2021
df78dcf
Update HQ credentials
skodde Nov 3, 2021
e310361
Merge pull request #195 from dimagi/mp/travis_update-hq-credentials
skodde Nov 3, 2021
1059b5b
Change location of mssql docker image
proteusvacuum Nov 4, 2021
a7f2837
Fix Travis badge
kaapstorm Nov 4, 2021
a9c9414
Ensure Python 3
kaapstorm Nov 4, 2021
5d8f097
Python comes with pip since 3.4
kaapstorm Nov 4, 2021
35fa15b
Merge pull request #194 from dimagi/bdr/requirements-fix
proteusvacuum Nov 4, 2021
db0af66
Merge remote-tracking branch 'origin/master' into fr/update-mssql-docker
proteusvacuum Nov 4, 2021
362820d
Merge pull request #197 from dimagi/fr/update-mssql-docker
snopoke Nov 5, 2021
c813186
Merge branch 'master' into nh/readme
kaapstorm Nov 5, 2021
dcc0f79
Merge pull request #198 from dimagi/nh/readme
kaapstorm Nov 5, 2021
3c5d4c2
Update readme with pinned version of alembic
proteusvacuum Nov 9, 2021
641922e
Merge pull request #200 from dimagi/proteusvacuum-patch-1
proteusvacuum Nov 10, 2021
a77856a
yapfify setup.py
proteusvacuum Nov 10, 2021
6b66b43
clean up imports
proteusvacuum Nov 10, 2021
64f6da1
Use extras_require for optional dependencies
proteusvacuum Nov 10, 2021
0ccdac9
Pin python version to >=3.6
proteusvacuum Nov 10, 2021
c0fb2d3
Update readme for optional deps
proteusvacuum Nov 10, 2021
536e597
Merge pull request #201 from dimagi/fr/setuptools
proteusvacuum Nov 10, 2021
6c63150
Square brakets confuse my terminal emulator
proteusvacuum Nov 10, 2021
86a3254
Add DATA_TYPE_TEXT to DATA_TYPES_TO_SQLALCHEMY_TYPES
Charl1996 Apr 5, 2022
333cb56
Merge pull request #202 from dimagi/cs/make-det-text-type-compatible
Charl1996 Apr 5, 2022
16fa85b
Fix import for Alembic>=1.7
kaapstorm Apr 19, 2022
dcf9ed2
Try building off Ubuntu 18.04 Bionic
kaapstorm Apr 19, 2022
c5604a2
Merge pull request #203 from dimagi/nh/alembic
kaapstorm Apr 19, 2022
d2bef02
Update classifiers
kaapstorm Apr 19, 2022
14d4885
isort
kaapstorm Apr 19, 2022
1a87de8
Drop six and imports for Python 2
kaapstorm Apr 19, 2022
e814ed1
Add missing import
kaapstorm Apr 19, 2022
8d2dc6b
Merge pull request #204 from dimagi/nh/cleanup
kaapstorm Apr 19, 2022
fd15691
Drop csv342
kaapstorm Apr 19, 2022
9f36ea3
Merge pull request #206 from dimagi/nh/drop_csv342
kaapstorm Apr 20, 2022
a33c442
Add yapf config. Clean commcare_export/writers.py
kaapstorm Apr 20, 2022
d0f5f06
yapf commcare_export
kaapstorm Apr 22, 2022
84191db
yapf tests
kaapstorm Apr 22, 2022
9d0eaf8
Use split_all_top_level_comma_separated_values
kaapstorm Apr 23, 2022
fad65e9
Fix f-string
kaapstorm Apr 23, 2022
317b5d4
Merge pull request #207 from dimagi/nh/yapf
kaapstorm Apr 23, 2022
b13556b
Move types from docstrings into type hints
kaapstorm Apr 22, 2022
9aba7f1
Add mypy config
kaapstorm Apr 23, 2022
bcd3def
Fix types
kaapstorm Apr 23, 2022
23a83b2
parse_args() doesn't raise UnicodeDecodeError
kaapstorm Apr 23, 2022
389298b
Drop unnecessary `__init__()`
kaapstorm Apr 23, 2022
db4797b
Drop duplicate `__repr__()`
kaapstorm Apr 23, 2022
e3a410b
Don't shadow outer variables
kaapstorm Apr 23, 2022
066db8b
Initialize self._metadata in __init__()
kaapstorm Apr 25, 2022
09932c0
Merge pull request #210 from dimagi/nh/tweaks
kaapstorm Apr 25, 2022
d236d66
Drop unnecessary comments
kaapstorm Apr 25, 2022
a7ce646
Merge branch 'master' into nh/types
kaapstorm Apr 25, 2022
be3faf1
We don't need to reflect all the tables.
kaapstorm Apr 25, 2022
3cfef23
Refactor: Pull out `_create_table()` method
kaapstorm Apr 25, 2022
5be52c3
We don't need to refresh `columns`
kaapstorm Apr 25, 2022
93db21b
Clean up a little
kaapstorm Apr 25, 2022
401d76b
Nits
kaapstorm Apr 25, 2022
763f8fd
Merge pull request #211 from dimagi/nh/types
kaapstorm Apr 26, 2022
bd93a9f
Add missing types
kaapstorm Apr 26, 2022
91a0dcb
How to check types in `env` and `minilinq` modules
kaapstorm Apr 26, 2022
8a722d8
Spelling, while we're here.
kaapstorm Apr 26, 2022
1da8522
Move comment to docstring
kaapstorm Apr 26, 2022
69c6f9f
Rename `table` -> `table_spec`
kaapstorm Apr 27, 2022
376d5cf
Just get the table once
kaapstorm Apr 27, 2022
c693ff2
Refresh table when we change it
kaapstorm Apr 27, 2022
ee3da16
Update tests
kaapstorm Apr 27, 2022
ff07831
"CommCare HQ"
kaapstorm Apr 27, 2022
30b153e
Merge pull request #214 from dimagi/nh/spelling
kaapstorm Apr 28, 2022
18a3257
Merge pull request #212 from dimagi/nh/reflect
kaapstorm May 2, 2022
23d8702
Merge pull request #213 from dimagi/nh/missed_two
kaapstorm May 2, 2022
ebfbf13
Update README.md
esoergel Jul 25, 2022
f877d71
Merge pull request #215 from dimagi/esoergel-patch-2
esoergel Jul 25, 2022
89914f4
Preserve values of duplicate filter names
kaapstorm Feb 1, 2023
ff7fc44
Fix test
kaapstorm Feb 10, 2023
46c5aca
OCD
kaapstorm Feb 10, 2023
a6b2b79
Merge pull request #217 from dimagi/nh/value_list
kaapstorm Feb 11, 2023
9a2cfb6
USH-1425: Replace travis CI config with GitHub actions
MartinRiese Mar 7, 2023
0f8825e
Fix sqlalchemy version
MartinRiese Mar 10, 2023
a1ed952
Remove .travise/wait.sh. Not needed with GitHub actions
MartinRiese Mar 13, 2023
c3815d9
Use setup-python action v4
MartinRiese Mar 17, 2023
7139f94
Add python 3.11 to version matrix
MartinRiese Mar 17, 2023
f41d4bb
Merge pull request #218 from dimagi/riese/github_actions
MartinRiese Mar 17, 2023
eff86d9
Merge branch 'master' into mssql-use-datetime2
snopoke Mar 31, 2023
075bd1e
Merge pull request #219 from dimagi/sk/mssql-use-datetime2
snopoke Mar 31, 2023
382c95e
Add UCR support
Charl1996 Aug 23, 2023
7424d90
Add checkpoint support for datasources
Charl1996 Aug 30, 2023
4d38104
Upgrade pip in github test workflow
Charl1996 Sep 4, 2023
96b90fd
convert git version to a PEP440 compatible version
snopoke Sep 5, 2023
be3df04
Merge pull request #224 from dimagi/sk/version-fix
snopoke Sep 5, 2023
28038fa
Merge branch 'master' into cs/SC-2911-support-data-sources
kaapstorm Sep 5, 2023
4684b51
Merge pull request #222 from dimagi/cs/SC-2911-support-data-sources
Charl1996 Sep 5, 2023
0c22b4c
Ensure initial params makes use of last checkpoint
Charl1996 Sep 26, 2023
4f8e5e6
Add cursor PaginationMode
Charl1996 Sep 26, 2023
90ba917
Move set_checkpoint to paginator class
Charl1996 Sep 27, 2023
df8083f
Sleep after failed GET request
SmittieC Oct 9, 2023
869c2cc
Move up check for ucr in get_pagination_mode
Charl1996 Oct 10, 2023
5f00383
Check for truthiness of checkpoint_manager first thing
Charl1996 Oct 10, 2023
631d173
Merge branch 'master' into cs/SC-3091-add-checkpoint-support
snopoke Oct 10, 2023
a717e16
upgrade jsonpath-ng version spec
snopoke Oct 10, 2023
8e85a88
update tests with changes in jsonpath-ng
snopoke Oct 10, 2023
c147a94
Check datasource for paginator
Charl1996 Oct 13, 2023
4fa3dd2
Merge branch 'cs/SC-3091-add-checkpoint-support' of github.com:dimagi…
Charl1996 Oct 13, 2023
34b49d0
Fix test
Charl1996 Oct 13, 2023
e6a5925
Merge pull request #223 from dimagi/cs/SC-3091-add-checkpoint-support
Charl1996 Oct 16, 2023
b498fda
Small refactor
SmittieC Oct 20, 2023
a814d71
Increase default page size for UCRs and change default value setting
SmittieC Oct 20, 2023
0963b25
Handle sleeping in the backoff handler
SmittieC Oct 20, 2023
a32d003
Use constants for default page sizes
SmittieC Oct 20, 2023
388a507
Let backoff handle the retry
SmittieC Oct 24, 2023
ea25a86
Check something
SmittieC Oct 24, 2023
8645d63
Add return value
SmittieC Oct 24, 2023
4e75422
Fix: Silly mistake. I got to take a break..
SmittieC Oct 24, 2023
21108bf
Raise for status if retry-after is not in the headers
SmittieC Oct 24, 2023
6dd1ae7
Test the check to determine if raise_for_status should be called
SmittieC Oct 24, 2023
4a811e6
Merge pull request #225 from dimagi/cs/improve_retries
SmittieC Oct 25, 2023
74b6431
Fix default page size for datasources
SmittieC Oct 26, 2023
b7d1620
Support lower python versions
SmittieC Oct 26, 2023
584e480
Merge pull request #226 from dimagi/cs/fix_for_datasources/default_pa…
SmittieC Oct 27, 2023
6bd5ddb
Update payload with params rather than the other way around
SmittieC Oct 30, 2023
de5ec15
Merge pull request #227 from dimagi/cs/small_update
SmittieC Oct 30, 2023
3efba7a
update readme with working example of using commcare API
AmitPhulera Nov 21, 2023
a6eb8e7
Merge pull request #228 from dimagi/ap/update-readme
AmitPhulera Nov 21, 2023
75338fe
specify backoff version
jingcheng16 Dec 7, 2023
583a5de
Merge pull request #229 from dimagi/jc/backoff-version
jingcheng16 Dec 7, 2023
7cd1fd9
shows detailed exception only when needed
mkangia Feb 2, 2024
0e34ba5
adds more info for 401 error
mkangia Feb 2, 2024
224334a
lowercase text
mkangia Feb 2, 2024
a4ceeb2
updates message to be explicit about authmode for apikey
mkangia Feb 2, 2024
d78c81d
expands on python & virtualenv installation steps
mkangia Feb 2, 2024
6f82386
updates to a specific directory name
mkangia Feb 5, 2024
4c07b24
adds link for info on virtual environment
mkangia Feb 5, 2024
fbd9a4b
fixes venv command
mkangia Feb 5, 2024
94d75b1
Merge pull request #231 from dimagi/mk/update-readme
mkangia Feb 5, 2024
0fc2bec
fixes spacing
mkangia Feb 6, 2024
b8954cb
adds tests
mkangia Feb 6, 2024
03ee10f
refactor: spacing & unused imports
mkangia Feb 6, 2024
4bd6edd
refactor: redundant argument & staticmethods
mkangia Feb 6, 2024
a218320
refactor: naming
mkangia Feb 6, 2024
dd9fec9
refactor: minor doc change
mkangia Feb 6, 2024
7c1d36e
upgrades coverallsapp
mkangia Feb 8, 2024
5d99505
avoids using internal naming
mkangia Feb 9, 2024
45f3c55
Merge pull request #230 from dimagi/mk/skip-stacktrace
mkangia Feb 9, 2024
b09d372
Push sys.stderr output and normal logs to log file
Charl1996 Feb 6, 2024
2e02e91
Add more logs and print statements for reporting
Charl1996 Feb 6, 2024
aafecec
Add option to output all info to console
Charl1996 Feb 6, 2024
1a5ba12
Merge branch 'master' into cs/SC-3373-det-log-file
Charl1996 Feb 12, 2024
cb3d975
Remove Logger class from cli.py
Charl1996 Feb 12, 2024
b0f1e81
Test on current Python releases
kaapstorm Feb 13, 2024
0b134d1
Neaten up README.md a little
kaapstorm Feb 13, 2024
4ff0e40
`python` might not work but `python3` always will
kaapstorm Feb 13, 2024
ec54ac3
Fix nearly all Python and JSON errors
kaapstorm Feb 13, 2024
b105c0f
Fix table formatting
kaapstorm Feb 13, 2024
68880da
Provide helpful message on row size too large
kaapstorm Feb 13, 2024
e337ade
"CommCare HQ"
kaapstorm Feb 14, 2024
18fec75
Fix raw string
kaapstorm Feb 14, 2024
c4b59bc
Install setuptools for Python 3.12
kaapstorm Feb 14, 2024
9fdfbaa
Update README.md for Python 3.12
kaapstorm Feb 14, 2024
4f4bb30
Update versions in setup.py
kaapstorm Feb 14, 2024
84fe33b
Use "venv" directory for virtualenv
kaapstorm Feb 14, 2024
3974ae6
setuptools not required
kaapstorm Feb 14, 2024
e78dddb
Fix column width
kaapstorm Feb 14, 2024
dff0651
Specify versions that are tested
kaapstorm Feb 14, 2024
f7bc3f5
Quote version numbers
kaapstorm Feb 14, 2024
a2f0bf6
Drop comment
kaapstorm Feb 14, 2024
531df4b
Explain the error better, offer a guideline.
kaapstorm Feb 14, 2024
6f7a0c8
Merge pull request #235 from dimagi/nh/readme
kaapstorm Feb 15, 2024
803ec6d
Merge pull request #234 from dimagi/nh/err_msg_row_size
kaapstorm Feb 15, 2024
1d63cf7
Add pyinstaller .spec file
Charl1996 Mar 7, 2024
eb641e4
Add build folder for compiling exe
Charl1996 Mar 7, 2024
da90bef
Add github workflow action
Charl1996 Mar 7, 2024
860b048
Update readme
Charl1996 Mar 7, 2024
95d3e92
Use sys.exit instead of exit
Charl1996 Mar 7, 2024
65b2bcb
Add runtime hook to set bundled env variable
Charl1996 Mar 7, 2024
263c69e
Add argument to test
Charl1996 Mar 8, 2024
a75ec28
Add logger names
Charl1996 Mar 12, 2024
6cf6338
Merge branch 'master' into cs/SC-3373-det-log-file
Charl1996 Mar 12, 2024
af99b49
Add tests for logger_name_from_filepath
Charl1996 Mar 21, 2024
a679618
Merge pull request #236 from dimagi/cs/SC-3351-compile-det-exe-linux
Charl1996 Mar 25, 2024
2781e73
Merge branch 'master' into cs/SC-3373-det-log-file
Charl1996 Mar 26, 2024
6af14f6
Use regex substitution and add one more test
Charl1996 Mar 27, 2024
f48e7a9
Merge pull request #233 from dimagi/cs/SC-3373-det-log-file
Charl1996 Mar 27, 2024
4cd33eb
ask the user to ensure project access
mkangia Apr 2, 2024
551eaee
Create sample Linux script
Charl1996 Apr 4, 2024
8f15f01
Add example bat file
Charl1996 Apr 4, 2024
259f511
Remove multi-line symbol from last line
Charl1996 Apr 4, 2024
a4fcf3f
validate output file extension for output-format
mkangia Apr 3, 2024
4a6f2fa
Update README with scheduled runs
Charl1996 Apr 5, 2024
131f774
Merge pull request #240 from dimagi/cs/SC-3551-sample-scheduling-script
Charl1996 Apr 8, 2024
f850111
Merge pull request #239 from dimagi/mk/improve-det-errors
mkangia Apr 8, 2024
1803e95
Generate windows exe
Charl1996 Apr 11, 2024
fc2a7d1
Don't use docker image for pyinstaller
Charl1996 Apr 11, 2024
bb49f90
Remove docker-related files and update README
Charl1996 Apr 11, 2024
2c936d4
Update README.md
Charl1996 Apr 11, 2024
6fcbfdd
Fix README
Charl1996 Apr 11, 2024
82dde86
Merge pull request #241 from dimagi/cs/SC-3532-windows-exe
Charl1996 Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/release_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: commcare-export release actions
on:
release:
types: [published]

jobs:
generate_linux_bin:
name: Generate Linux binary as release asset
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install pyinstaller
shell: bash
run: python -m pip install pyinstaller

- name: Generate exe
shell: bash
run: |
pip install commcare-export
pip install -r build_exe/requirements.txt
pyinstaller --dist ./dist/linux commcare-export.spec

- name: Upload release assets
uses: AButler/[email protected]
with:
files: "./dist/linux/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}

generate_windows_exe:
name: Generate Windows exe as release asset
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install pyinstaller
shell: pwsh
run: python -m pip install pyinstaller

- name: Generate exe
shell: pwsh
run: |
pip install commcare-export
pip install -r build_exe/requirements.txt
pyinstaller --dist ./dist/windows commcare-export.spec

- name: Upload release assets
uses: AButler/[email protected]
with:
files: "./dist/windows/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}
72 changes: 72 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: commcare-export tests
on:
pull_request:
branches:
- master
env:
DB_USER: db_user
DB_PASSWORD: Password123
jobs:
test:
runs-on: ubuntu-22.04
services:
mssql:
image: mcr.microsoft.com/mssql/server:2017-latest
env:
SA_PASSWORD: ${{ env.DB_PASSWORD }}
ACCEPT_EULA: 'Y'
ports:
- 1433:1433
postgres:
image: postgres
env:
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
POSTGRES_USER: ${{ env.DB_USER }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 50
- run: git fetch --tags origin # So we can use git describe. actions/checkout@v3 does not pull tags.

# MySQL set up
- run: sudo service mysql start # Ubuntu already includes mysql no need to use service
- run: mysql -uroot -proot -e "CREATE USER '${{ env.DB_USER }}'@'%';"
- run: mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON *.* TO '${{ env.DB_USER }}'@'%';"

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: sudo apt-get install pandoc
- run: pip install --upgrade pip
- run: pip install setuptools
- run: python setup.py sdist
- run: pip install dist/*
- run: pip install pymysql psycopg2 pyodbc
- run: pip install coverage coveralls
- run: pip install mypy
- run: pip install pytest
- run: pip install -e ".[test]"
- run: coverage run setup.py test
env:
POSTGRES_URL: postgresql://${{ env.DB_USER }}:${{ env.DB_PASSWORD }}@localhost/
MYSQL_URL: mysql+pymysql://${{ env.DB_USER }}:@localhost/
MSSQL_URL: mssql+pyodbc://sa:${{ env.DB_PASSWORD }}@localhost/
HQ_USERNAME: ${{ secrets.HQ_USERNAME }}
HQ_API_KEY: ${{ secrets.HQ_API_KEY }}
- run: mypy --install-types --non-interactive @mypy_typed_modules.txt
- run: coverage lcov -o coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token:
${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ nosetests.xml

# Excel
~*.xlsx
commcare_export.log
5 changes: 5 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/timothycrosley/isort/wiki/isort-Settings
[settings]
multi_line_output=3
include_trailing_comma=true

11 changes: 11 additions & 0 deletions .style.yapf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[style]
based_on_style = yapf
column_limit = 79
indent_width = 4
coalesce_brackets = true
dedent_closing_brackets = true
spaces_before_comment = 2
split_before_arithmetic_operator = true
split_before_bitwise_operator = true
split_before_logical_operator = true
split_all_top_level_comma_separated_values = true
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .travis/wait.sh

This file was deleted.

Loading