File tree Expand file tree Collapse file tree 5 files changed +43
-41
lines changed Expand file tree Collapse file tree 5 files changed +43
-41
lines changed Original file line number Diff line number Diff line change 16
16
contents : write
17
17
steps :
18
18
- uses : actions/checkout@v4
19
- - uses : actions/setup-python@v5
20
- with :
21
- python-version : " 3.12"
22
- - uses : astral-sh/setup-uv@v3
23
- - run : uv sync
24
- - uses : quarto-dev/quarto-actions/setup@v2
25
- - name : install quarto extensions
26
- working-directory : ./website/skirolly/
27
- run : quarto add --no-prompt https://github.com/qmd-lab/closeread/archive/e3645070dd668004056ae508d2d25d05baca5ad1.zip
28
- - name : Install R
29
- uses : r-lib/actions/setup-r@v2
30
- with :
31
- r-version : ' 4.4.0'
32
- - name : Install Magick++
33
- run : sudo apt-get install -y libmagick++-dev
34
- - name : Install Poppler C++ API
35
- run : sudo apt-get -y install libpoppler-cpp-dev
36
- - name : Install R Dependencies
37
- uses : r-lib/actions/setup-renv@v2
38
- with :
39
- working-directory : website/skirolly/
19
+ - uses : ./.github/workflows/setup-python
20
+ - uses : ./.github/workflows/setup-r
21
+ - uses : ./.github/workflows/setup-quarto
40
22
- name : install fonts
41
23
run : sudo apt-get install --yes --quiet fonts-dejavu-core fonts-noto-cjk
42
24
# GitHub will remove any cache entries that have not been accessed in over 7 days
Original file line number Diff line number Diff line change
1
+ name : Setup Python
2
+ description : Common steps for installing python and project dependencies
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - uses : actions/setup-python@v5
7
+ with :
8
+ python-version : " 3.12"
9
+ - uses : astral-sh/setup-uv@v3
10
+ - run : uv sync --extra=dev
11
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Setup Quarto
2
+ description : Common steps for installing quarto
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - uses : quarto-dev/quarto-actions/setup@v2
7
+ - name : install quarto extensions
8
+ working-directory : ./website/skirolly/
9
+ run : quarto add --no-prompt https://github.com/qmd-lab/closeread/archive/e3645070dd668004056ae508d2d25d05baca5ad1.zip
Original file line number Diff line number Diff line change
1
+ name : Setup R
2
+ description : Common steps for installing R and project dependencies
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Install system packages for R
7
+ run : sudo apt-get install --yes --quiet libmagick++-dev libpoppler-cpp-dev
8
+ - name : Install R
9
+ uses : r-lib/actions/setup-r@v2
10
+ with :
11
+ r-version : ' 4.4.0'
12
+ - name : Install R Dependencies
13
+ uses : r-lib/actions/setup-renv@v2
14
+ with :
15
+ working-directory : website/skirolly/
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v4
10
- - uses : actions/setup-python@v5
11
- with :
12
- python-version : " 3.12"
10
+ - uses : ./.github/workflows/setup-python
13
11
- uses : pre-commit/action@v3.0.1
14
- - uses : astral-sh/setup-uv@v3
15
- - run : uv sync --extra=dev
16
- shell : bash
17
- - run : uv run pytest --color=yes
12
+ - name : Python tests
13
+ run : uv run pytest --color=yes
18
14
r-tests :
19
15
runs-on : ubuntu-latest
20
16
steps :
21
17
- uses : actions/checkout@v4
22
- - name : Install R
23
- uses : r-lib/actions/setup-r@v2
24
- with :
25
- r-version : ' 4.4.0'
26
- - name : Install Magick++
27
- run : sudo apt-get install -y libmagick++-dev
28
- - name : Install Poppler C++ API
29
- run : sudo apt-get -y install libpoppler-cpp-dev
30
- - name : Install R Dependencies
31
- uses : r-lib/actions/setup-renv@v2
32
- with :
33
- working-directory : website/skirolly/
34
- - name : Test R
18
+ - uses : ./.github/workflows/setup-r
19
+ - name : R tests
35
20
run : Rscript -e "packageVersion('arrow')"
36
21
working-directory : website/skirolly/
You can’t perform that action at this time.
0 commit comments