Skip to content

Commit

Permalink
Fix backports.zoneinfo and pkg_resources breakages in main (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Jun 25, 2024
1 parent 68cbaed commit f917bae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip

# Installs dependencies and performs static code checks
- run: python3 -m pip install virtualenv && python3 -m virtualenv -p python3 venv
- run: source venv/bin/activate && ./install-dev.sh
- run: source venv/bin/activate && ./pre-commit.sh
- run: pip install --upgrade pip
- run: ./install-dev.sh
- run: ./pre-commit.sh
- name: Run tests
run: source venv/bin/activate && pytest --durations=20
run: pytest --durations=20
env:
TEST: ${{ matrix.test }}
VERSION: ${{ github.head_ref || 'main' }}
- name: Run entire pipeline quickly without any data
# Checking RunSpecs with openai/davinci should be comprehensive enough
run: source venv/bin/activate && helm-run --suite test -m 100 --skip-instances --models-to-run openai/davinci --exit-on-error
run: helm-run --suite test -m 100 --skip-instances --models-to-run openai/davinci --exit-on-error

4 changes: 2 additions & 2 deletions .github/workflows/update-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.10"]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Upgrade pip
run: pip install --upgrade pip
run: pip install --upgrade pip setuptools
- name: Install PyTorch manually
# PyTorch has to be installed manually in a separate step with --no-cache-dir
# to avoid pip getting killed because PyTorch is too big
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ attrs==23.2.0
autograd==1.6.2
autokeras==1.0.20
awscli==1.29.85
backports.zoneinfo==0.2.1
beautifulsoup4==4.12.3
black==24.3.0
blis==0.7.11
Expand Down Expand Up @@ -322,7 +321,6 @@ uncertainty-calibration==0.1.4
Unidecode==1.3.6
uritemplate==4.1.1
urllib3==1.26.18
virtualenv==20.26.2
wandb==0.13.11
wasabi==1.1.3
wcwidth==0.2.13
Expand Down

0 comments on commit f917bae

Please sign in to comment.