Skip to content

Commit

Permalink
Merge pull request #101 from masanorihirano/release/0.2.1
Browse files Browse the repository at this point in the history
Release/0.2.1
  • Loading branch information
masanorihirano authored Apr 7, 2024
2 parents e71f357 + ee011e3 commit f20a862
Show file tree
Hide file tree
Showing 15 changed files with 399 additions and 175 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'release/') }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
run: pip install poetry
- name: Bump version
run: git branch --show-current | sed 's|release/||' | xargs poetry version | { printf '::set-output name=PR_TITLE::'; cat; }
id: bump
- name: Bump version 2
run: git branch --show-current | sed 's|release/||' | xargs -I {} echo '__version__ = "{}"' > pams/version.py
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
author: GitHub Actions <[email protected]>
commit-message: ${{ steps.bump.outputs.PR_TITLE }}
delete-branch: true
branch-suffix: short-commit-hash
title: ${{ steps.bump.outputs.PR_TITLE }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
run: pip install poetry
- name: Bump version
run: git branch --show-current | sed 's|release/||' | xargs poetry version | { printf '::set-output name=PR_TITLE::'; cat; }
id: bump
- name: Bump version 2
run: git branch --show-current | sed 's|release/||' | xargs -I {} echo '__version__ = "{}"' > pams/version.py
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
author: GitHub Actions <[email protected]>
commit-message: ${{ steps.bump.outputs.PR_TITLE }}
delete-branch: true
branch-suffix: short-commit-hash
title: ${{ steps.bump.outputs.PR_TITLE }}
8 changes: 4 additions & 4 deletions .github/workflows/ci-python-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI-min
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ dev, release/* ]
branches: [dev, release/*]
pull_request:
branches: [ dev, release/* ]
branches: [dev, release/*]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,12 +18,12 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 5
matrix:
platform: [ubuntu-latest]
python-version: [3.9]
python-version: [3.11]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-python-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI-notebooks
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main, dev, release/* ]
branches: [main, dev, release/*]
pull_request:
branches: [ main, dev, release/* ]
branches: [main, dev, release/*]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,12 +18,12 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 5
matrix:
platform: [ubuntu-latest]
python-version: [3.8]
python-version: [3.11]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,7 +18,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 5
matrix:
Expand Down Expand Up @@ -47,4 +47,4 @@ jobs:
- name: Doc Test
if: matrix.platform == 'ubuntu-latest'
run: |
poetry run pytest --doctest-modules pams
poetry run pytest --doctest-modules pams
44 changes: 22 additions & 22 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: codecov CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main, dev, release/* ]
branches: [main, dev, release/*]
pull_request:
branches: [ main ]
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -21,26 +21,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install poetry
poetry install
- name: make cov report
run: |
poetry run pytest --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.xml
flags: pytest
verbose: true
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install poetry
poetry install
- name: make cov report
run: |
poetry run pytest --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.xml
flags: pytest
verbose: true
4 changes: 2 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
doc:
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 5
matrix:
platform: [ubuntu-latest]
python-version: [3.9]
python-version: [3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
Loading

0 comments on commit f20a862

Please sign in to comment.