Skip to content

Commit

Permalink
Merge branch 'main' into cov
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos authored Sep 6, 2024
2 parents a21b7b9 + 009647c commit aa67be2
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 20 deletions.
34 changes: 18 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,60 +20,62 @@ jobs:
# Documentation CI
docs-build:
docker:
- image: cimg/python:3.10
- image: cimg/python:3.12
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
- v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-python3.10-
- v2-dependencies-python3.12-
- run:
name: Install dependencies
# Note that we the circleci node image installs stuff with a user "circleci", rather
# than root. So we need to tell npm where to install stuff.
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r ./docs/requirements.txt
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r ./docs/requirements.txt
- save_cache:
paths:
- ./venv
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
key: v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }}
- run:
name: Build docs
command: |
. venv/bin/activate
source .venv/bin/activate
cd docs/
make deploy_docs
cd ..
docs-build-deploy:
docker:
- image: cimg/python:3.10-node
- image: cimg/python:3.12-node
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
- v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-python3.10-
- v2-dependencies-python3.12-
- run:
name: Install dependencies
# Note that we the circleci node image installs stuff with a user "circleci", rather
# than root. So we need to tell npm where to install stuff.
command: |
npm set prefix=/home/circleci/npm
npm install -g --silent [email protected]
python3 -m venv venv
. venv/bin/activate
pip install -r ./docs/requirements.txt
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r ./docs/requirements.txt
- save_cache:
paths:
- ./venv
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
key: v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }}
- add_ssh_keys:
# This SSH key is "CircleCI Docs" in https://github.com/move-coop/parsons/settings/keys
# We need write access to the Parsons repo, so we can push the "gh-pages" branch.
Expand All @@ -85,7 +87,7 @@ jobs:
# (This file tell Github Pages that we want to include all files in docs/, including those
# that start with an underscore like _static/).
command: |
. venv/bin/activate
source .venv/bin/activate
cd docs/
make deploy_docs
cd ..
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pip-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- windows-latest
python-version:
- "3.12"
- "3.11"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- windows-latest
python-version:
- "3.12"
- "3.11"
Expand Down Expand Up @@ -79,4 +80,4 @@ jobs:
run: |
coverage run -m pytest
coverage report -m --skip-covered --fail-under=95
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ braintree==4.17.1
bs4==0.0.1
censusgeocode==0.4.3.post1
civis==1.16.1
curlify==2.2.1
dbt_redshift==1.4.0
docutils<0.18,>=0.14
facebook-business==13.0.0
google-api-core==2.19.2
google-api-python-client==1.7.7
google-auth==2.29.0
google-cloud-bigquery==3.23.1
Expand All @@ -27,14 +29,14 @@ petl==1.7.15
psycopg2-binary==2.9.9
PyGitHub==1.51
python-dateutil==2.8.2
requests==2.31.0
requests==2.32.0
requests_oauthlib==1.3.0
setuptools==70.0.0
simple-salesforce==1.11.6
simplejson==3.16.0
slackclient==1.3.0
sqlalchemy >= 1.4.22, != 1.4.33, < 2.0.0 # Prefect does not work with 1.4.33 and >3.0.0 has breaking changes
suds-py3==1.3.4.0
suds-py3==1.4.4.1
surveygizmo==1.2.3
twilio==8.2.1
urllib3==1.26.19
Expand All @@ -45,6 +47,6 @@ xmltodict==0.11.0
# TODO Remove when we have a TMC-specific Docker image
jinja2>=3.0.2
selenium==3.141.0
us==3.1.1
us==3.2.0
sshtunnel==0.4.0

3 changes: 3 additions & 0 deletions test/test_targetsmart/test_targetsmart_smartmatch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import csv
import io
import gzip
import sys

import petl
import pytest

from parsons.targetsmart.targetsmart_api import TargetSmartAPI


Expand Down Expand Up @@ -70,6 +72,7 @@ def submit_filename():
return "parsons_test.csv"


@pytest.mark.skipif(sys.platform == "win32", reason="need to fix this test on windows")
def test_smartmatch(
intable,
submit_filename,
Expand Down

0 comments on commit aa67be2

Please sign in to comment.