Skip to content

Commit

Permalink
chore(ci): update GitHub Actions workflow to use matrix strategy and …
Browse files Browse the repository at this point in the history
…install PyTorch
  • Loading branch information
beduffy committed Feb 15, 2025
1 parent 289485c commit 2dac04c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ on:
jobs:
test:
runs-on: ubuntu-20.04
# strategy:
# matrix:
# python-version: ["3.8", "3.9", "3.10"] # Test multiple Python versions
strategy:
matrix:
python-version: ["3.8"] # Reduced to just 3.8 since that's your target version

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.8
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: Cache pip packages
uses: actions/cache@v3
Expand All @@ -32,8 +32,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install PyTorch first
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
pip install pytest pytest-cov coverage-badge mypy flake8 black isort
pip install pytest pytest-cov coverage-badge mypy flake8 black isort pre-commit
- name: Run pre-commit
run: |
Expand Down

0 comments on commit 2dac04c

Please sign in to comment.