Skip to content

Commit

Permalink
try to fix python timeout errors in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dmca-glasgow committed May 6, 2022
1 parent 49c4097 commit 9892ca9
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x]
r-version: [4.1.x]
python-version: [3.x]

steps:
# -----------------------
Expand Down Expand Up @@ -51,26 +52,33 @@ jobs:
- name: Cache Renv packages
uses: r-lib/actions/setup-renv@v2

# Python
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

# Build release
- name: Build release
run: npm run build-release

- name: Link release
run: npm link ./release

# -----------------------
# SETUP -----------------
# TEST ------------------
# -----------------------

- run: npm run test
- name: Run tests
run: npm run test

# - run: |
# npm link
# cd fixtures/apm
# rmarkdown --week=2
# -----------------------
# WRAP UP ---------------
# -----------------------

- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@main
with:
name: ${{ matrix.os }}-node${{ matrix.node-version }}-r${{ matrix.r-version }}-results
name: ${{ matrix.os }}-node${{ matrix.node-version }}-r${{ matrix.r-version }}-python${{ matrix.python-version }}-results
path: check

0 comments on commit 9892ca9

Please sign in to comment.