Skip to content

Commit

Permalink
Test python 3.9 & 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle1668 committed Feb 10, 2023
1 parent ee9f1ce commit af9a172
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/cpu_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Run CPU Tests"
on: "push"

jobs:
run-tests:
run-tests-python3_9:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -17,18 +17,26 @@ jobs:
run: python -m pip install --upgrade pip

- name: Install Dependencies
run: |
pip install -e .[dev]
# - name: Install Dependencies
# run: |
# sudo apt-get install libopenmpi-dev -y
# pip install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cpu
# pip install -r requirements/requirements.txt
# pip install -r requirements/requirements-dev.txt

# - name: Prepare Data
# run: python prepare_data.py
run: pip install -e .[dev]

- name: Run CPU Tests
run: pytest -m cpu

run-tests-python3_10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Upgrade Pip
run: python -m pip install --upgrade pip

- name: Install Dependencies
run: pip install -e .[dev]

- name: Run CPU Tests
run: pytest -m cpu

0 comments on commit af9a172

Please sign in to comment.