diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 7f4aa4c..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitattributes b/.gitattributes index d433fda..b57f642 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -*.zip filter=lfs diff=lfs merge=lfs -text -*.csv filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..40a6be6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install uv and dependencies + run: | + pip install uv + uv sync + uv pip install pytest-cov pytest-xdist + + - name: Run tests with coverage + run: uv run pytest app/tests/ --cov --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy + env: + PYTHONPATH: . + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Abstract-Data/campaignfinance-2023 + + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + diff --git a/.gitignore b/.gitignore index ae5f005..f8693fd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,10 @@ *.zip *.DS_Store *.env +# *.parquet *.__pycache__/ /logs/ +# /tmp/ # Byte-compiled / optimized / DLL files __pycache__/ @@ -173,3 +175,5 @@ cython_debug/ *.csv *.txt +*.parquet +/tmp \ No newline at end of file diff --git a/.idea/.DS_Store b/.idea/.DS_Store index ef45f5b..7615b36 100644 Binary files a/.idea/.DS_Store and b/.idea/.DS_Store differ diff --git a/.idea/campaignfinance.iml b/.idea/campaignfinance.iml index 235dc2c..3873efe 100644 --- a/.idea/campaignfinance.iml +++ b/.idea/campaignfinance.iml @@ -5,8 +5,9 @@ + - + diff --git a/.idea/csv-editor.xml b/.idea/csv-editor.xml index 1301501..28bbc2c 100644 --- a/.idea/csv-editor.xml +++ b/.idea/csv-editor.xml @@ -108,34 +108,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.idea/misc.xml b/.idea/misc.xml index f6f180a..6d44f0c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -6,7 +6,7 @@