Skip to content

Commit

Permalink
Make DB timestamps TZ-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Sep 6, 2023
1 parent dfb2f1f commit 1453ec6
Show file tree
Hide file tree
Showing 12 changed files with 303 additions and 199 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.11"]

# Service containers to run with `container-job`
services:
# Label used to access the service container
Expand All @@ -32,27 +32,27 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
pytest tests
env:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
pytest tests -s -v -k 7
env:
# Env vars for pytest
POSTGRES_USERNAME: postgres
POSTGRES_HOST: localhost
Expand All @@ -61,4 +61,4 @@ jobs:
POSTGRES_PLAYBACK_DB_NAME: postgres_playback_test
POSTGRES_PORT: 5432
DQM_CR_USERNAMES: "user:password"
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
Loading

0 comments on commit 1453ec6

Please sign in to comment.