Skip to content

Commit

Permalink
Upgrade linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Oct 10, 2023
1 parent 820445e commit b08c81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'oldrel-1'}
- {os: ubuntu-22.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-22.04, r: 'release'}
- {os: ubuntu-22.04, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,19 +44,6 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

- name: Downgrade librsvg2 if needed
if: runner.os == 'Linux'
run: |
curl -O http://launchpadlibrarian.net/509454689/librsvg2-2_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-2_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454691/librsvg2-common_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-common_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454680/gir1.2-rsvg-2.0_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./gir1.2-rsvg-2.0_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454685/librsvg2-dev_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-dev_2.48.9-1ubuntu0.20.04.1_amd64.deb
shell: bash

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
15 changes: 1 addition & 14 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -26,19 +26,6 @@ jobs:
extra-packages: any::covr
needs: coverage

- name: Downgrade librsvg2 if needed
if: runner.os == 'Linux'
run: |
curl -O http://launchpadlibrarian.net/509454689/librsvg2-2_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-2_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454691/librsvg2-common_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-common_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454680/gir1.2-rsvg-2.0_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./gir1.2-rsvg-2.0_2.48.9-1ubuntu0.20.04.1_amd64.deb
curl -O http://launchpadlibrarian.net/509454685/librsvg2-dev_2.48.9-1ubuntu0.20.04.1_amd64.deb
sudo apt install --fix-broken --allow-downgrades ./librsvg2-dev_2.48.9-1ubuntu0.20.04.1_amd64.deb
shell: bash

- name: Test coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit b08c81c

Please sign in to comment.