10
10
max-parallel : 6
11
11
fail-fast : false
12
12
matrix :
13
- python-version : ['3.11', '3.12', '3. 13']
13
+ python-version : ['3.11', '3.13']
14
14
r-version : [release]
15
15
os : [macOS-latest, ubuntu-latest]
16
16
steps :
26
26
r-version : ${{ matrix.r-version }}
27
27
use-public-rspm : true
28
28
cache-version : 2
29
+ - name : Patch GHA issue with macos - Missing C library
30
+ shell : bash
31
+ run : |
32
+ LIB_ARCHIVES=(\
33
+ libdeflate-1.23-darwin.20-arm64.tar.xz \
34
+ zstd-1.5.5-darwin.20-arm64.tar.xz \
35
+ )
36
+ for name in "${LIB_ARCHIVES[@]}"
37
+ do
38
+ curl -LO https://mac.r-project.org/bin/darwin20/arm64/"${name}"
39
+ sudo tar xJf "${name}" -C /
40
+ done
41
+ if : runner.os == 'macOS'
29
42
- name : Set up package maintainers R on Linux
30
43
run : |
31
44
sudo apt-get update -y
35
48
export R_LIBS_USER=/usr/local/lib/R/site-library
36
49
if : runner.os == 'Linux'
37
50
- name : Install R dependencies
38
- run : Rscript -e "install.packages('RKorAPClient')"
51
+ run : |
52
+ Rscript -e "install.packages('pak')"
53
+ Rscript -e "pak::pak('RKorAPClient')"
39
54
- name : Cache R packages on Linux
40
55
uses : actions/cache@v3
41
56
with :
51
66
- name : Install dependencies
52
67
run : |
53
68
python -m pip install --upgrade pip
54
- pip install wheel
55
- - name : Install package on Mac and Linux
56
- if : runner.os != 'Windows'
57
- run : |
58
- pip install .
59
- - name : Install package on Windows
60
- if : runner.os == 'Windows'
69
+ pip install deflate wheel
70
+ - name : Install package
61
71
run : |
62
72
pip install rpy2
63
73
pip install .
69
79
if : runner.os != 'Windows'
70
80
run : |
71
81
export LD_LIBRARY_PATH=$(python -m rpy2.situation LD_LIBRARY_PATH):${LD_LIBRARY_PATH}
72
- pip install pytest
82
+ python -m ensurepip --upgrade
83
+ python -m pip install pytest
73
84
pytest KorAPClient/tests --junitxml=junit/test-results-${{ matrix.python-version }}.xml
74
85
- name : Test with pytest on Windows
75
86
if : runner.os == 'Windows'
@@ -87,15 +98,15 @@ jobs:
87
98
pdoc KorAPClient --force --html -o build/doc
88
99
- name : Deploy documentation on Linux
89
100
if : runner.os == 'Linux'
90
- uses : JamesIves/github-pages-deploy-action@releases/v3
101
+ uses : JamesIves/github-pages-deploy-action@releases/v4
91
102
with :
92
103
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93
104
BRANCH : gh-pages # The branch the action should deploy to.
94
105
FOLDER : build/doc # The folder the action should deploy.
95
106
TARGET_FOLDER : doc
96
107
- name : Upload check results
97
108
if : failure()
98
- uses : actions/upload-artifact@v3
109
+ uses : actions/upload-artifact@v4
99
110
with :
100
111
name : pytest-results-${{ matrix.python-version }}
101
112
path : junit/test-results-${{ matrix.python-version }}.xml
0 commit comments