Skip to content

Commit

Permalink
Revert "Merge branch 'main' into cormac-mobilecommons-connector"
Browse files Browse the repository at this point in the history
This reverts commit cad250f, reversing
changes made to 493e117.
  • Loading branch information
cmdelrio committed Sep 26, 2023
1 parent cad250f commit 8190052
Show file tree
Hide file tree
Showing 502 changed files with 87,167 additions and 44,647 deletions.
84 changes: 63 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,79 @@
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#

version: 2

workflows:
version: 2
build:
jobs:
- docs-build
- test
- docs-build:
filters:
branches:
ignore: master
- docs-build-deploy:
filters:
tags:
only: /^v.*/
branches:
only: main
ignore: /.*/

version: 2
jobs:
test:
docker:
- image: circleci/python:3.7

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-python3.7-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-python3.7-

- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-python3.7-{{ checksum "requirements.txt" }}

- run:
name: run tests
command: |
. venv/bin/activate
TESTING=1 pytest -rf test/
- run:
name: check linting
command: |
. venv/bin/activate
flake8 parsons/ test/ useful_resources/
- store_artifacts:
path: test-reports
destination: test-reports

# Documentation CI
docs-build:
docker:
- image: cimg/python:3.10
- image: circleci/python:3.7
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
- v1-dependencies-python3.7-{{ checksum "./docs/requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-python3.10-
- v1-dependencies-python3.7-
- run:
name: Install dependencies
# Note that we the circleci node image installs stuff with a user "circleci", rather
Expand All @@ -40,26 +86,24 @@ jobs:
- save_cache:
paths:
- ./venv
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
key: v1-dependencies-python3.7-{{ checksum "./docs/requirements.txt" }}
- run:
name: Build docs
command: |
. venv/bin/activate
cd docs/
make deploy_docs
cd ..
cd docs/ && make html && cd ..
docs-build-deploy:
docker:
- image: cimg/python:3.10-node
- image: circleci/python:3.7-node
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
- v1-dependencies-python3.7-{{ checksum "./docs/requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-python3.10-
- v1-dependencies-python3.7-
- run:
name: Install dependencies
# Note that we the circleci node image installs stuff with a user "circleci", rather
Expand All @@ -73,22 +117,20 @@ jobs:
- save_cache:
paths:
- ./venv
key: v2-dependencies-python3.10-{{ checksum "./docs/requirements.txt" }}
key: v1-dependencies-python3.7-{{ 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.
fingerprints:
- '9a:ec:4d:2b:c3:45:b2:f5:55:ca:0b:2b:36:e2:7f:df'
- 'a6:b1:ec:19:86:19:8b:98:1e:b1:41:b2:e1:4a:4f:3d'
- run:
name: Build and deploy docs
# When running gh-pages, we specify to include dotfiles, so we pick up the .nojerkyll file.
# (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
cd docs/
make deploy_docs
cd ..
cd docs/ && make html && cd ..
git config user.email "[email protected]"
git config user.name "ci-build"
export PATH=/home/circleci/npm/bin:$PATH
Expand Down
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/proposed-feature-addition.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/release.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/test-linux-windows.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/tests-mac.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ instance/
.scrapy

# Sphinx documentation
docs/html
#docs/_build/

# PyBuilder
target/
Expand Down Expand Up @@ -124,4 +124,3 @@ bill_com_credentials.*

docs/html
docs/dirhtml
*.sw*
15 changes: 0 additions & 15 deletions .pre-commit-config.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting hr@movementcooperative.org. All complaints will be reviewed
and investigated and will result in a response that is deemed necessary and
appropriate to the circumstances. The project team is obligated to maintain
confidentiality with regard to the reporter of an incident. Further details
of specific enforcement policies may be posted separately.
reported by contacting the project team at justin@movementcooperative.org. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
Expand Down
Loading

0 comments on commit 8190052

Please sign in to comment.