forked from cylc/cylc-uiserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest'] | ||
os: ['macos-latest'] | ||
python: ['3.8', '3.9'] | ||
include: | ||
- os: 'macos-latest' | ||
python: '3.8' | ||
n: [1, 2] | ||
env: | ||
PYTEST_ADDOPTS: --cov --color=yes | ||
PYTEST_ADDOPTS: --cov --color=yes -rA --disable-warnings | ||
FORCE_COLOR: 2 | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -28,7 +24,7 @@ jobs: | |
if: startsWith(matrix.os, 'macos') | ||
run: | | ||
# install system deps | ||
brew update | ||
# brew update | ||
brew install bash coreutils | ||
# add GNU coreutils to the user PATH | ||
|
@@ -49,34 +45,10 @@ jobs: | |
python-version: ${{ matrix.python }} | ||
|
||
- name: install cylc-flow | ||
uses: cylc/release-actions/install-cylc-components@v1 | ||
with: | ||
cylc_flow: true | ||
cylc_flow_opts: '' | ||
run: pip install "cylc-flow @ git+https://github.com/cylc/[email protected]" | ||
|
||
- name: install cylc-uiserver | ||
run: pip install -e .[all] | ||
|
||
- name: Style test | ||
run: flake8 | ||
|
||
- name: Type checking | ||
run: mypy | ||
|
||
- name: Check changelog | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: towncrier build --draft | ||
|
||
- name: Test | ||
run: pytest | ||
|
||
- name: Coverage report | ||
run: | | ||
coverage xml --ignore-errors | ||
coverage report | ||
- name: Codecov upload | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: '${{ matrix.os }} py-${{ matrix.python }}' | ||
fail_ci_if_error: false | ||
run: pytest cylc/uiserver/tests/test_resolvers.py |
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