Skip to content

Commit

Permalink
Merge pull request #30 from NII-DG/develop
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
suecharo committed Jun 8, 2023
2 parents a0a837b + 211aa94 commit 4fc636c
Show file tree
Hide file tree
Showing 73 changed files with 3,074 additions and 1,840 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ on:
jobs:
flake8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ on:
jobs:
isort:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/load_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Load test

on:
push:
branches:
- main
workflow_dispatch: {}
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
load_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Load test
run: |
bash ./tests/load_test.sh
12 changes: 9 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ on:
jobs:
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,27 @@ on:
jobs:
pytest:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v2
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
python3 -m pip install --no-cache-dir --progress-bar off -U .[tests]
- name: Check with pytest
run: |
pytest -s ./tests/unit_test
pytest -s ./tests
36 changes: 36 additions & 0 deletions .github/workflows/test_with_sapporo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test with Sapporo

on:
push:
branches:
- main
workflow_dispatch: {}
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test_with_sapporo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
python3 -m pip install --no-cache-dir --progress-bar off -U .[tests]
- name: Test with Sapporo
run: |
bash ./tests/test_with_sapporo.sh
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM python:3.8.15-slim-buster
LABEL org.opencontainers.image.authors="National Institute of Informatics, Japan"
LABEL org.opencontainers.image.url="https://github.com/NII-DG/nii-dg"
LABEL org.opencontainers.image.source="https://raw.githubusercontent.com/NII-DG/nii-dg/main/Dockerfile"
LABEL org.opencontainers.image.version="0.1.2"
LABEL org.opencontainers.image.version="1.0.0"
LABEL org.opencontainers.image.licenses="Apache2.0"

RUN apt update && \
Expand Down
Loading

0 comments on commit 4fc636c

Please sign in to comment.