Skip to content

Commit 658cc89

Browse files
Switch CI workflow to use with-connect setup
1 parent dae1ed9 commit 658cc89

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
# https://github.com/browsertron/pytest-parallel/issues/93
8080
no_proxy: "*"
8181

82-
test-rsconnect:
82+
test-connect:
8383
name: "Test Posit Connect"
8484
runs-on: ubuntu-latest
8585
if: ${{ !github.event.pull_request.head.repo.fork }}
@@ -94,18 +94,13 @@ jobs:
9494
python -m pip install -r requirements/dev.txt
9595
python -m pip install -e .
9696
97-
- name: run Posit Connect
98-
run: |
99-
docker compose up --build -d
100-
make dev
101-
env:
102-
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
103-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
104-
10597
# NOTE: edited to run checks for python package
10698
- name: Run tests
107-
run: |
108-
pytest pins -m 'fs_rsc and not skip_on_github'
99+
uses: posit-dev/with-connect@main
100+
with:
101+
license: ${{ secrets.RSC_LICENSE }}
102+
command: |
103+
bash -c 'python script/setup-rsconnect/dump_api_keys.py pins/tests/rsconnect_api_keys.json && pytest pins -x -m "fs_rsc and not skip_on_github"'
109104
110105
111106
test-fork:

0 commit comments

Comments
 (0)