Skip to content

Commit

Permalink
Merge pull request #616 from qulacs/614-update-deprecated-actions
Browse files Browse the repository at this point in the history
614 update deprecated actions
  • Loading branch information
ikanago committed Mar 14, 2024
2 parents 4b4b70d + a1269cf commit 2868622
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 114 deletions.
3 changes: 0 additions & 3 deletions .devcontainer/cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ RUN apt-get update \
doxygen \
pandoc \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*

RUN pip install -U pip \
&& pip install black flake8 openfermion mypy pybind11-stubgen
4 changes: 2 additions & 2 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
PYTHON: ${{ matrix.python-version }}
CACHE_NAME: "ccache-qulacs-build-v2"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest
Expand All @@ -45,7 +45,7 @@ jobs:
verbose: 2

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/ci_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ on:
- "*.md"

jobs:
gcc8-build:
name: GCC8 build
gcc-build:
name: GCC build
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
runs-on: "ubuntu-20.04"
env:
CXX_COMPILER: "/usr/lib/ccache/g++"
Expand All @@ -28,7 +28,7 @@ jobs:
COVERAGE: "Yes"
USE_TEST: "Yes"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest
Expand All @@ -40,7 +40,7 @@ jobs:
verbose: 2

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
make pythontest -j $(nproc)
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

gcc10-build-with-address-sanitizer:
name: GCC10 build with -fsanitizer=address enabled
Expand All @@ -91,7 +91,7 @@ jobs:
QULACS_OPT_FLAGS: "-mtune=haswell -march=haswell -mfpmath=both"
USE_TEST: "Yes"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest
Expand All @@ -114,8 +114,8 @@ jobs:
cd ./build
make test
nvcc-gcc8-GPUbuild:
name: nvcc + gcc8 build
nvcc-gcc-GPUbuild:
name: nvcc + gcc build
runs-on: "ubuntu-20.04"
env:
CXX_COMPILER: "/usr/lib/ccache/g++"
Expand All @@ -126,7 +126,7 @@ jobs:
USE_TEST: "Yes"
USE_GPU: "Yes"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest
Expand All @@ -138,7 +138,7 @@ jobs:
verbose: 2

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7.5"
architecture: x64
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
QULACS_OPT_FLAGS: "-march=armv8.2-a+sve"
QEMU_LD_PREFIX: "/usr/aarch64-linux-gnu"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup qemu
run: |
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
name: Format with clang-format
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: sudo apt install clang-format=1:10.0-50~exp1

Expand All @@ -230,30 +230,30 @@ jobs:
runs-on: "ubuntu-20.04"
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install formatters
run: pip install black isort
run: python -m pip install black isort

- name: Check format
run: |
black . --check --diff
isort . --check --diff
python -m black . --check --diff
python -m isort . --check --diff
mpicc-build:
name: MPICC build
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
runs-on: "ubuntu-20.04"
env:
CXX_COMPILER: "mpic++"
Expand All @@ -262,13 +262,13 @@ jobs:
PYTHON: ${{ matrix.python-version }}
COVERAGE: "ON"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down Expand Up @@ -321,4 +321,4 @@ jobs:
mpirun -n 2 pytest python/tests/multi_cpu
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
18 changes: 5 additions & 13 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
name: Windows CI

on:
push:
paths-ignore:
- ".devcontainer/**"
- ".vscode/**"
- "doc/**"
- "*.md"
branches:
- "dev"
pull_request_review:
types: [submitted, edited]
workflow_dispatch:

jobs:
gcc8-build:
name: GCC8 build
gcc-build:
name: GCC build
# For jobs triggered by pull_request_review, build task should run only if is in `approved` state.
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved' }}
strategy:
matrix:
python-version: ["3.10"]
Expand All @@ -28,7 +20,7 @@ jobs:
PYTHON: ${{ matrix.python-version }}
COVERAGE: "ON"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest
Expand All @@ -37,7 +29,7 @@ jobs:
# mozilla/sccache is one candidate for this situation.

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- "main"
tags:
- "v*"
pull_request:
pull_request_review:
types: [submitted, edited]
workflow_dispatch:
Expand Down Expand Up @@ -48,13 +47,13 @@ jobs:
PYTHON: ${{ matrix.python-version }}
TWINE_USERNAME: "__token__"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down Expand Up @@ -105,13 +104,13 @@ jobs:
COVERAGE: "ON"
TWINE_USERNAME: "__token__"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cmake
uses: lukka/get-cmake@latest

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down

0 comments on commit 2868622

Please sign in to comment.