Skip to content

Commit

Permalink
Merge pull request #1524 from palewire/on-the-fly
Browse files Browse the repository at this point in the history
Flatten the application by removing version tracking
  • Loading branch information
palewire authored Sep 10, 2022
2 parents 1e28097 + aa5deb4 commit 0035359
Show file tree
Hide file tree
Showing 72 changed files with 42,299 additions and 12,761 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/continuous-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pipenv'
Expand All @@ -35,6 +35,20 @@ jobs:
matrix:
settings: ['postgresql', 'multi_dbs']
python: ['3.8', '3.9', '3.10']
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calaccess_raw
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout the repo
uses: actions/checkout@v2
Expand All @@ -47,17 +61,9 @@ jobs:
python-version: ${{ matrix.python }}
cache: 'pipenv'

- name: Set up PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: '11'
postgresql db: calaccess_raw
postgresql user: postgres
postgresql password: postgres

- id: pipenv-install
name: Install Python dependencies
run: pipenv install --dev --python `which python`
run: pipenv install --dev --python `which python` --skip-lock

- name: Test
run: |
Expand All @@ -74,12 +80,12 @@ jobs:
needs: [test-python]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pipenv'
Expand Down Expand Up @@ -114,13 +120,13 @@ jobs:
needs: [test-build]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
with:
python-version: '3.9'

- id: fetch
name: Fetch artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: release
path: ./dist
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/etl.yaml

This file was deleted.

7 changes: 3 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ verify_ssl = true
name = "pypi"

[packages]
Django = "==3.2.*"
Django = "==4.0.*"
django-postgres-copy = ">=2.6.*"
"hurry.filesize" = "*"
"psycopg2-binary" = "*"
pytz = "*"
requests = "*"
clint = "*"
django-internetarchive-storage = "*"
csvkit = "*"

[dev-packages]
Expand All @@ -26,6 +23,8 @@ coverage = "*"
requests-mock = "*"
twine = "*"
setuptools-scm = "*"
django-internetarchive-storage = "*"
black = "*"

[requires]
python_version = "3.9"
Loading

0 comments on commit 0035359

Please sign in to comment.