Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshipon committed Apr 7, 2024
1 parent a39b849 commit 88799a2
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 62 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
- push
- pull_request

jobs:
ci:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04']
python-version: ['3.10']
test_target: ['apps', 'hpo']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[dev,github-actions]
- name: Run pytest
run: pytest -v --cov=aiaccel --cov-branch --cov-report=term-missing tests/${{ strategy.target }}

31 changes: 31 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint
on:
- push
- pull_request

jobs:
lint:
name: Lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04']
python-version: ['3.10']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[dev,github-actions]
- name: Perform ruff
run: |
ruff check
ruff format --check
- name: Perform mypy
run: |
mypy --config-file mypy.ini .
12 changes: 0 additions & 12 deletions .github/workflows/mypy.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/pytest.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/ruff.yaml

This file was deleted.

0 comments on commit 88799a2

Please sign in to comment.