diff --git a/.github/workflows/build_doc.yml b/.github/workflows/build_doc.yml index 93bd11333..3af2d301f 100644 --- a/.github/workflows/build_doc.yml +++ b/.github/workflows/build_doc.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 # Standard drop-in approach that should work for most people. - - name: Set up Python 3.8 - uses: actions/setup-python@v1 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.10" - name: Get Python running run: | @@ -41,4 +41,4 @@ jobs: - uses: actions/upload-artifact@v1 with: name: Documentation - path: docs/build/html/ \ No newline at end of file + path: docs/build/html/ diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index 392bce4ec..9bdd337c0 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -25,9 +25,9 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install POT @@ -48,9 +48,9 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'no pep8')" steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies @@ -69,9 +69,9 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'no ci')" steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies @@ -93,12 +93,12 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.10"] + python-version: ["3.11"] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install POT @@ -120,12 +120,12 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.10"] + python-version: ["3.11"] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: RC.exe diff --git a/.github/workflows/build_tests_cuda.yml b/.github/workflows/build_tests_cuda.yml index e614aefa8..be8e47c8b 100644 --- a/.github/workflows/build_tests_cuda.yml +++ b/.github/workflows/build_tests_cuda.yml @@ -12,7 +12,7 @@ jobs: if: github.event.review.state == 'approved' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master') steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Install POT run: | python3.10 -m pip install --ignore-installed -e . diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index c6c70251b..c60babff6 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -18,9 +18,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: "3.10" @@ -53,9 +53,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 with: python-version: "3.10" diff --git a/.github/workflows/build_wheels_weekly.yml b/.github/workflows/build_wheels_weekly.yml index 5245d41cc..6b2f124fa 100644 --- a/.github/workflows/build_wheels_weekly.yml +++ b/.github/workflows/build_wheels_weekly.yml @@ -17,9 +17,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: "3.10" diff --git a/examples/barycenters/plot_barycenter_1D.py b/examples/barycenters/plot_barycenter_1D.py index 40dc44476..7c17c9b22 100644 --- a/examples/barycenters/plot_barycenter_1D.py +++ b/examples/barycenters/plot_barycenter_1D.py @@ -100,7 +100,7 @@ #%% plot interpolation plt.figure(2) -cmap = plt.cm.get_cmap('viridis') +cmap = plt.get_cmap('viridis') verts = [] zs = alpha_list for i, z in enumerate(zs): @@ -122,7 +122,7 @@ plt.tight_layout() plt.figure(3) -cmap = plt.cm.get_cmap('viridis') +cmap = plt.get_cmap('viridis') verts = [] zs = alpha_list for i, z in enumerate(zs): diff --git a/examples/unbalanced-partial/plot_UOT_barycenter_1D.py b/examples/unbalanced-partial/plot_UOT_barycenter_1D.py index f747055cb..de1a3b3d5 100644 --- a/examples/unbalanced-partial/plot_UOT_barycenter_1D.py +++ b/examples/unbalanced-partial/plot_UOT_barycenter_1D.py @@ -120,7 +120,7 @@ pl.figure(3) -cmap = pl.cm.get_cmap('viridis') +cmap = pl.get_cmap('viridis') verts = [] zs = weight_list for i, z in enumerate(zs): @@ -142,7 +142,7 @@ pl.tight_layout() pl.figure(4) -cmap = pl.cm.get_cmap('viridis') +cmap = pl.get_cmap('viridis') verts = [] zs = weight_list for i, z in enumerate(zs):