Skip to content

Commit

Permalink
Update build-and-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tcuongd committed Sep 28, 2024
1 parent d8c5b80 commit 82180bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
os: ["macos-latest", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
os: ["macos-13", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
fail-fast: false

steps:
Expand All @@ -24,17 +24,17 @@ jobs:
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
$os_version = (Get-CimInstance Win32_OperatingSystem).version
Echo "OS_VERSION=$os_version" >> $env:GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: "**/python/pyproject.toml"
- name: "Restore RTools40"
if: startsWith(runner.os, 'Windows')
id: cache-rtools
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: C:/rtools40
key: ${{ runner.os }}-${{ env.OS_VERSION }}-rtools-v1
Expand All @@ -58,7 +58,7 @@ jobs:
RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2
Expand All @@ -75,7 +75,7 @@ jobs:
shell: Rscript {0}
- name: Restore R package cache
if: runner.os != 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down

0 comments on commit 82180bb

Please sign in to comment.