Skip to content

Commit

Permalink
Set timezone in GitHub Actions workflow
Browse files Browse the repository at this point in the history
Moved timezone setup from the test-setup script to the testing YAML workflow to reduce duplication and streamline the process. This ensures consistent timezone configuration during the CI pipeline.
  • Loading branch information
gmr committed Feb 9, 2025
1 parent eedf5de commit f93087a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y bash cargo gcc git libffi-dev libpq-dev build-essential postgresql postgresql-server-dev-16 rustc tzdata
sudo cp /usr/share/zoneinfo/America/New_York /etc/localtime
sudo echo "America/New_York" > /etc/timezone
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Setup test/fixture data
run: sudo ci/test-setup
run: ci/test-setup

- name: Run tests
run: ci/test
Expand Down
2 changes: 0 additions & 2 deletions ci/test-setup
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env sh
set -e
mkdir -p build/data
cp /usr/share/zoneinfo/America/New_York /etc/localtime
echo "America/New_York" > /etc/timezone

export PGPASSWORD=postgres

Expand Down

0 comments on commit f93087a

Please sign in to comment.