Skip to content

Commit 5812016

Browse files
committed
Update github actions
1 parent 4f5a1ff commit 5812016

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
python-version: [3.8]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323

2424
- name: Set up Python ${{ matrix.python-version }}
2525
uses: actions/setup-python@v2
@@ -30,7 +30,7 @@ jobs:
3030
shell: bash
3131
run: |
3232
python -m pip install wheel
33-
python -m pip install --upgrade pip "conan<2"
33+
python -m pip install --upgrade pip "conan"
3434
cmake -E make_directory ${{runner.workspace}}/build
3535
3636
- name: Configure CMake
@@ -40,7 +40,7 @@ jobs:
4040
-DCMAKE_C_COMPILER=gcc
4141
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
4242
-Dpython=False
43-
-Dconan_deps=True
43+
-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=./cmake/conan_provider.cmake
4444
4545
- name: Build
4646
working-directory: ${{runner.workspace}}/build

.github/workflows/python.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: python source distribution
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python 3.8
1818
uses: actions/setup-python@v2
1919
with:
@@ -22,7 +22,6 @@ jobs:
2222
- name: Install build packages and pytest
2323
run: |
2424
python -m pip install --upgrade pip wheel setuptools
25-
python -m pip install "conan<2" scikit-build pytest cython numpy>=2
2625
2726
- name: Create sdist
2827
run: python setup.py sdist
@@ -33,7 +32,7 @@ jobs:
3332
- name: run pytest
3433
run: pytest tests/test_pyssht.py
3534

36-
- uses: actions/upload-artifact@v2
35+
- uses: actions/upload-artifact@v4
3736
if: ${{ startsWith(github.ref, 'refs/tags') }}
3837
with:
3938
path: ./dist/*.tar.gz
@@ -48,7 +47,7 @@ jobs:
4847
python-version: [3.8]
4948

5049
steps:
51-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5251

5352
- uses: actions/setup-python@v2
5453
name: Install Python
@@ -58,7 +57,7 @@ jobs:
5857
- name: Setup environment
5958
run: |
6059
python -m pip install --upgrade pip wheel
61-
python -m pip install "conan<2" pytest ducc0
60+
python -m pip install "conan" pytest ducc0
6261
conan profile new default --detect
6362
6463
- name: Build wheels
@@ -70,7 +69,7 @@ jobs:
7069
- name: run pytests
7170
run: pytest tests
7271

73-
- uses: actions/upload-artifact@v2
72+
- uses: actions/upload-artifact@v4
7473
if: ${{ startsWith(github.ref, 'refs/tags') }}
7574
with:
7675
path: ./dist/*.whl

0 commit comments

Comments
 (0)