-
-
Notifications
You must be signed in to change notification settings - Fork 196
migrate circleci to github action #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+107
−117
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e03043a
migrate circleci to github action
T4rk1n 76d0724
separate chromedriver install
T4rk1n 181b0bb
Apply suggestions from code review
T4rk1n 2b472cf
Remove nonexistent action
camdecoster 87b7d3f
Use headless mode
camdecoster 38cdcd2
Update action versions and pin them
camdecoster cc067d1
Add env var for Chrome location
camdecoster 0ffd59c
Add node setup step for python 3.8
camdecoster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,107 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
|
T4rk1n marked this conversation as resolved.
|
||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| python-3-8: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| PERCY_ENABLE: 0 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Set up Python 3.8 | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: '3.8' | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Set up Chrome | ||
| id: setup-chrome | ||
| uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2 | ||
| with: | ||
| install-chromedriver: true | ||
|
|
||
| - name: Cache pip dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-3.8-${{ hashFiles('tests/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip-3.8- | ||
|
|
||
| - name: Install requirements | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r tests/requirements.txt --quiet | ||
|
|
||
| - name: Run tests | ||
| env: | ||
| DASH_TEST_CHROMEPATH: ${{ steps.setup-chrome.outputs.chrome-path }} | ||
| run: pytest --headless | ||
|
|
||
| python-3-12-install-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| PERCY_ENABLE: 0 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Set up Chrome | ||
| id: setup-chrome | ||
| uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2 | ||
| with: | ||
| install-chromedriver: true | ||
|
|
||
| - name: Cache pip dependencies | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-3.12-${{ hashFiles('tests/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip-3.12- | ||
|
|
||
| - name: Install requirements | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r tests/requirements.txt --quiet | ||
|
|
||
| - name: Generate project and test | ||
| env: | ||
| DASH_TEST_CHROMEPATH: ${{ steps.setup-chrome.outputs.chrome-path }} | ||
| run: | | ||
| mkdir test_install | ||
| cd test_install | ||
| cookiecutter .. --config-file ../tests/test_config.yaml --no-input | ||
| cd test_component | ||
| python -m venv venv | ||
| . venv/bin/activate | ||
| pip install -r tests/requirements.txt --quiet | ||
| npm install --ignore-scripts | ||
| npm run build | ||
| pytest --headless | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.