Skip to content

Commit

Permalink
Attempt to install tzdata as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed May 20, 2024
1 parent 9143985 commit c0024f5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
"pypy-3.8",
]
os: [ubuntu-latest, windows-latest, macos-latest]
tzdata-version: "2024a"
exclude:
- python-version: "2.7"
os: "ubuntu-latest"
Expand Down Expand Up @@ -63,8 +64,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Get tzdata version
run: cat /usr/share/zoneinfo/tzdata.zi | head -n 1
- name: Install specific tzdata version
run: |
sudo apt-get install lzip
TMP_DIR=$(mktemp -d)
cd $TMP_DIR
curl -sSL "https://data.iana.org/time-zones/releases/${{matrix.tzdata-version}}.tar.gz" -o tzdata.tar.gz
mkdir tzdata
tar --lzip -xf tzdata.tar.lz
cd tzdata-${{matrix.tzdata-version}}
TOPDIR=/usr/share/zoneinfo sudo make install
jj
cat /usr/share/zoneinfo/tzdata.zi | head -n 1
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
- name: Install dependencies
run: python -m pip install -U tox
- name: Run tox
Expand Down

0 comments on commit c0024f5

Please sign in to comment.