-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from blink1073/test-other-actions
Add some testing of actions
- Loading branch information
Showing
3 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["*"] | ||
|
||
jobs: | ||
downstream_defaults: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Base Setup | ||
uses: ./.github/actions/base-setup | ||
- name: Create a mock python package | ||
run: | ||
echo "from setuptools import setup; setup(name='foo')" > setup.py | ||
- name: Check Downstream test with defaults | ||
uses: ./.github/actions/downstream-test | ||
with: | ||
package_name: jupyter_client | ||
|
||
downstream_overrides: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Base Setup | ||
uses: ./.github/actions/base-setup | ||
- name: Create a mock python package | ||
run: | ||
echo "from setuptools import setup; setup(name='foo')" > setup.py | ||
- name: Check Downstream test with overrides | ||
uses: ./.github/actions/downstream-test | ||
with: | ||
package_name: nbclient | ||
package_spec: "nbclient[test] ipykernel" | ||
test_command: "echo 'hello'" | ||
extra_test: "pytest --pyargs nbclient" | ||
env_values: IPYKERNEL_CELL_NAME=\<IPY-INPUT\> | ||
|
||
binder_link: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Base Setup | ||
uses: ./.github/actions/base-setup | ||
- name: Check Binder Link | ||
uses: ./.github/actions/binder-link | ||
with: | ||
github_token: "FAKE" | ||
url_path: "/foo/bar" |