Skip to content

Commit

Permalink
Merge pull request #300 from fox8090/master
Browse files Browse the repository at this point in the history
Major Changes to Policy Simulation Library's Website
  • Loading branch information
jdebacker authored Mar 6, 2024
2 parents 9c6fdfb + 587998a commit 46445ff
Show file tree
Hide file tree
Showing 165 changed files with 176,570 additions and 29,734 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/update_catalog.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update PSL catalog
on:
schedule:
- cron: '0 1 * * *'
- cron: "0 1 * * *"
push:
branches:
- master
Expand All @@ -10,32 +10,33 @@ jobs:
build_catalog:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: catalog-env
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: catalog-env
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false

- name: Run python script
working-directory: ./Tools/Catalog-Builder/
shell: bash -l {0}
run: |
pip install -e .
cd catalog_builder
python catalog.py
- name: Run python script
working-directory: ./Tools/Catalog-Builder/
shell: bash -l {0}
run: |
pip install -e .
cd catalog_builder
python catalog.py
python catalog.py --incubating
- name: Commit new changes
working-directory: ./
shell: bash -l {0}
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Commit new changes
working-directory: ./
shell: bash -l {0}
run: |
git config user.name github-actions
git config user.email [email protected]
git add -A
git commit --allow-empty -m "Update PSL-catalog on $(date +'%Y-%m-%d')"
git push
git add -A
git commit --allow-empty -m "Update PSL-catalog on $(date +'%Y-%m-%d')"
git push
51 changes: 26 additions & 25 deletions .github/workflows/update_community_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,38 @@ on:
branches:
- master
paths:
- 'Community/**.md'
- 'Catalog/**.md'
- "Community/**.md"
- "Catalog/**.md"

jobs:
build_community_pages:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: catalog-env
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: catalog-env
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false

- name: Run shell script
working-directory: ./Tools/Page-Builder/
shell: bash -l {0}
run: |
sh make_pages.sh
- name: Run shell script
working-directory: ./Tools/Page-Builder/
shell: bash -l {0}
run: |
pip install -r requirements.txt
sh make_pages.sh
- name: Commit new changes
working-directory: ./
shell: bash -l {0}
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Commit new changes
working-directory: ./
shell: bash -l {0}
run: |
git config user.name github-actions
git config user.email [email protected]
git add -A
git commit --allow-empty -m "Update PSL community pages on $(date +'%Y-%m-%d')"
git push
git add -A
git commit --allow-empty -m "Update PSL community pages on $(date +'%Y-%m-%d')"
git push
47 changes: 46 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,56 @@ __pycache__/
.pytest_cache/
htmlcov/
.coverage
.coverage.*

# Sphinx documentation
read-the-docs/_build/

# Mac OS X
*.DS_Store

*.egg-info/
# Egg-info directories
*.egg-info/
*.egg

# Jekyll build output
/_site/
/.jekyll-cache/

# Python virtual environments
/venv/

# Node modules
/node_modules/

# IDE and editor directories
/.idea/
/.vscode/
*.sublime-workspace
*.sublime-project

# Operating system files
Thumbs.db

# Python
*.pyc

# Jupyter Notebook
.ipynb_checkpoints

# Environment variables and configuration files
.env
config/settings.yml

# Backup files
*.bak
*.tmp
*.swp

# Logs
logs/
*.log

# Others
*.sqlite3
*.sqlitedb
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ install:

# command to run tests
script:
- cd catalog_builder && pytest tests/ -v
- cd catalog_builder && pytest tests/ -v
Loading

0 comments on commit 46445ff

Please sign in to comment.