Skip to content

Commit

Permalink
Merge pull request #98 from ko-matsu/feature/update-ci-20241103
Browse files Browse the repository at this point in the history
feat: update CI
  • Loading branch information
k-matsuzawa authored Nov 5, 2024
2 parents c299eaa + 7f890ea commit 31e5345
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 122 deletions.
53 changes: 24 additions & 29 deletions .github/workflows/check_pre-merge_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ on:
- test_ci

env:
GITHUB_VERSION: v0.2.3
GITHUB_BITCOIN_VERSION: v0.2.3
GITHUB_VERSION: v0.2.5
GITHUB_BITCOIN_VERSION: v0.2.5
GITHUB_DOCKER_IMAGE: ghcr.io/cryptogarageinc/elements-testing
ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_entrypoint.sh
BITCOIN_ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_bitcoin_entrypoint.sh
Expand All @@ -29,19 +29,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04']
py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
os: ['macos-13', 'macos-14', 'macos-15', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install setuptools
if: ${{ matrix.py-ver == '3.12' }}
if: ${{ matrix.py-ver == '3.12' || matrix.py-ver == '3.13' }}
run: pip install --user setuptools
- name: build
run: python setup.py build
Expand All @@ -62,40 +62,35 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04']
py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
os: ['macos-13', 'macos-14', 'macos-15', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
# py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9']
include:
- os: windows-2019
py-ver: 'pypy-3.8'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy38\site-packages'
- os: windows-2019
py-ver: 'pypy-3.9'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy39\site-packages'
- os: windows-2019
py-ver: 'pypy-3.10'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy310\site-packages'
- os: windows-2022
py-ver: 'pypy-3.8'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy38\site-packages'
# - os: windows-2019
# py-ver: 'pypy-3.10'
# package-path: 'c:\users\runneradmin\appdata\roaming\Python\PyPy310\site-packages'
- os: windows-2022
py-ver: 'pypy-3.9'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy39\site-packages'
- os: windows-2022
py-ver: 'pypy-3.10'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy310\site-packages'
# - os: windows-2022
# py-ver: 'pypy-3.10'
# package-path: 'c:\users\runneradmin\appdata\roaming\Python\PyPy310\site-packages'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install pip
run: python -m pip install -U pip
- name: Install setuptools
if: ${{ matrix.py-ver == '3.12' }}
if: ${{ matrix.py-ver == '3.12' || matrix.py-ver == '3.13' }}
run: pip install --user setuptools
- name: install
run: pip install --user .
Expand All @@ -114,10 +109,10 @@ jobs:
elements-e2e-test:
timeout-minutes: 40
name: elements e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -127,10 +122,10 @@ jobs:
bitcoin-e2e-test:
timeout-minutes: 20
name: bitcoin e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -141,7 +136,7 @@ jobs:
name: doxygen-ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install_doxygen
run: sudo apt install doxygen graphviz
- name: doxygen_check
Expand Down
42 changes: 18 additions & 24 deletions .github/workflows/check_pre-merge_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
- stable_v*

env:
GITHUB_VERSION: v0.2.3
GITHUB_BITCOIN_VERSION: v0.2.3
GITHUB_VERSION: v0.2.5
GITHUB_BITCOIN_VERSION: v0.2.5
GITHUB_DOCKER_IMAGE: ghcr.io/cryptogarageinc/elements-testing
ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_entrypoint.sh
BITCOIN_ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_bitcoin_entrypoint.sh
Expand All @@ -30,19 +30,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04']
py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
os: ['macos-13', 'macos-14', 'macos-15', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install setuptools
if: ${{ matrix.py-ver == '3.12' }}
if: ${{ matrix.py-ver == '3.12' || matrix.py-ver == '3.13' }}
run: pip install --user setuptools
- name: build
run: python setup.py build
Expand All @@ -63,22 +63,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04']
# py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9']
os: ['macos-13', 'macos-14', 'macos-15', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
# py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9']
include:
- os: windows-2019
py-ver: 'pypy-3.8'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy38\site-packages'
- os: windows-2019
py-ver: 'pypy-3.9'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy39\site-packages'
# - os: windows-2019
# py-ver: 'pypy-3.10'
# package-path: 'c:\users\runneradmin\appdata\roaming\Python\PyPy310\site-packages'
- os: windows-2022
py-ver: 'pypy-3.8'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy38\site-packages'
- os: windows-2022
py-ver: 'pypy-3.9'
package-path: 'c:\users\runneradmin\appdata\roaming\pypy\pypy39\site-packages'
Expand All @@ -87,17 +81,17 @@ jobs:
# package-path: 'c:\users\runneradmin\appdata\roaming\Python\PyPy310\site-packages'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install pip
run: python -m pip install -U pip
- name: Install setuptools
if: ${{ matrix.py-ver == '3.12' }}
if: ${{ matrix.py-ver == '3.12' || matrix.py-ver == '3.13' }}
run: pip install --user setuptools
- name: install
run: pip install --user .
Expand All @@ -116,10 +110,10 @@ jobs:
elements-e2e-test:
timeout-minutes: 40
name: elements e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -129,10 +123,10 @@ jobs:
bitcoin-e2e-test:
timeout-minutes: 20
name: bitcoin e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -143,7 +137,7 @@ jobs:
name: doxygen-ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install_doxygen
run: sudo apt install doxygen graphviz
- name: doxygen_check
Expand Down
32 changes: 17 additions & 15 deletions .github/workflows/check_pre-merge_sprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,32 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['macos-11', 'macos-12', 'macos-13', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04']
py-ver: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
os: ['macos-13', 'macos-14', 'macos-15', 'windows-2019', 'windows-2022', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
py-ver: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
exclude:
- os: macos-11
py-ver: '3.9'
- os: macos-11
- os: macos-14
py-ver: '3.10'
- os: macos-14
py-ver: '3.11'
- os: macos-14
py-ver: '3.12'
- os: windows-2019
py-ver: '3.9'
py-ver: '3.10'
- os: windows-2019
py-ver: 'pypy-3.9'
- os: windows-2022
py-ver: '3.9'
py-ver: '3.10'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py-ver }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install setuptools
if: ${{ matrix.py-ver == '3.12' }}
if: ${{ matrix.py-ver == '3.12' || matrix.py-ver == '3.13' }}
run: pip install --user setuptools
- name: build
run: python setup.py build
Expand All @@ -67,10 +69,10 @@ jobs:
elements-e2e-test:
timeout-minutes: 40
name: elements e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -80,10 +82,10 @@ jobs:
bitcoin-e2e-test:
timeout-minutes: 20
name: bitcoin e2e test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: e2e-test
run: |
docker login docker.pkg.github.com -u owner -p ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -94,7 +96,7 @@ jobs:
name: doxygen-ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install_doxygen
run: sudo apt install doxygen graphviz
- name: doxygen_check
Expand Down
Loading

0 comments on commit 31e5345

Please sign in to comment.