Skip to content

Commit d38cb55

Browse files
update workflow 2
1 parent a517c49 commit d38cb55

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,28 @@ jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
container:
13-
image: rocker/tidyverse:4.3.2 # or rocker/r-ver:4.3.2 or another Rocker image
13+
image: rocker/tidyverse:4.3.2
1414

1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v2
1818

19-
- name: Set up Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: '3.x'
23-
24-
- name: Install Python dependencies
19+
- name: Install pip and Python dependencies
2520
run: |
26-
python -m pip install --upgrade pip
27-
pip install wheel setuptools twine rpy2
21+
apt-get update
22+
apt-get install -y python3-pip
23+
python3 -m pip install --upgrade pip
24+
pip3 install wheel setuptools twine rpy2
2825

2926
- name: Install R ahead package
3027
run: |
3128
Rscript -e "options(repos = c(techtonique = 'https://r-packages.techtonique.net', CRAN = 'https://cloud.r-project.org')); utils::install.packages('ahead', dependencies=TRUE)"
3229

3330
- name: Build distribution
34-
run: python setup.py sdist bdist_wheel
31+
run: python3 setup.py sdist bdist_wheel
3532

3633
- name: Run examples
37-
run: pip install . && find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
34+
run: pip3 install . && find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
3835

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

0 commit comments

Comments
 (0)