Create test.yml
This commit is contained in:
parent
b44f29bfbf
commit
8160e1b6ac
21
.github/workflows/test.yml
vendored
Normal file
21
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: CV_Web_ADM
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Test python API
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Install requirements
|
||||||
|
run: npm ci
|
||||||
|
- name: Run tests and collect coverage
|
||||||
|
run: npm run test
|
||||||
|
- name: Upload coverage reports to Codecov
|
||||||
|
run: |
|
||||||
|
# Replace `linux` below with the appropriate OS
|
||||||
|
# Options are `alpine`, `linux`, `macos`, `windows`
|
||||||
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
|
chmod +x codecov
|
||||||
|
./codecov -t ${CODECOV_TOKEN}
|
Loading…
x
Reference in New Issue
Block a user