Skip to content

Commit a517c49

Browse files
update workflow
1 parent f4971d4 commit a517c49

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
container:
13+
image: rocker/tidyverse:4.3.2 # or rocker/r-ver:4.3.2 or another Rocker image
1214

1315
steps:
1416
- name: Checkout code
@@ -17,18 +19,22 @@ jobs:
1719
- name: Set up Python
1820
uses: actions/setup-python@v2
1921
with:
20-
python-version: '3.x' # Replace with your Python version
22+
python-version: '3.x'
2123

22-
- name: Install dependencies
24+
- name: Install Python dependencies
2325
run: |
2426
python -m pip install --upgrade pip
25-
pip install wheel setuptools twine
27+
pip install wheel setuptools twine rpy2
28+
29+
- name: Install R ahead package
30+
run: |
31+
Rscript -e "options(repos = c(techtonique = 'https://r-packages.techtonique.net', CRAN = 'https://cloud.r-project.org')); utils::install.packages('ahead', dependencies=TRUE)"
2632
2733
- name: Build distribution
2834
run: python setup.py sdist bdist_wheel
2935

3036
- name: Run examples
31-
run: pip install .&&find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
37+
run: pip install . && find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
3238

3339
- name: Publish to PyPI
3440
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)