Skip to content

Commit

Permalink
Use ci repo for cpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chu committed Feb 28, 2024
1 parent 7c82d1f commit 29473f1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 306 deletions.
117 changes: 0 additions & 117 deletions .github/mcli/mcli_pytest.py

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
daily-pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-cpu.yaml@gpu
strategy:
matrix:
include:
Expand Down Expand Up @@ -73,11 +73,13 @@ jobs:
with:
container: ${{ matrix.container }}
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
composer_package_name: ${{ matrix.composer_package_name }}
pytest-wandb-entity: "mosaicml-public-integration-tests"
pytest-wandb-project: "integration-tests-${{ github.sha }}"
safe_directory: composer
secrets:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -98,7 +100,7 @@ jobs:
download-path: artifacts

daily-pytest-gpu:
uses: ./.github/workflows/pytest-gpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-gpu.yaml@gpu
strategy:
matrix:
# Unlike CPU tests, we run daily tests together with GPU tests to minimize launch time
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,32 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-cpu.yaml@gpu
strategy:
matrix:
include:
- name: cpu-3.10-2.0
container: mosaicml/pytorch:2.0.1_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and not doctest
pytest_command: coverage run -m pytest
composer_package_name: mosaicml
- name: cpu-3.10-2.1
container: mosaicml/pytorch:2.1.2_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and not doctest
pytest_command: coverage run -m pytest
composer_package_name: mosaicml
- name: cpu-doctest
container: mosaicml/pytorch:2.1.2_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and doctest
pytest_command: coverage run -m pytest tests/test_docs.py
composer_package_name: mosaicml
name: ${{ matrix.name }}
if: github.repository_owner == 'mosaicml'
with:
composer_package_name: ${{ matrix.composer_package_name }}
composer_package_name: mosaicml
container: ${{ matrix.container }}
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
safe_directory: composer
coverage:
uses: ./.github/workflows/coverage.yaml
name: Coverage Results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
pytest-gpu:
uses: ./.github/workflows/pytest-gpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-gpu.yaml@gpu
strategy:
matrix:
include:
Expand Down
92 changes: 0 additions & 92 deletions .github/workflows/pytest-cpu.yaml

This file was deleted.

89 changes: 0 additions & 89 deletions .github/workflows/pytest-gpu.yaml

This file was deleted.

0 comments on commit 29473f1

Please sign in to comment.