From 8160e1b6acf3e89c19392f67d00513957d448aef Mon Sep 17 00:00:00 2001 From: Anthony Dumas Date: Mon, 27 Mar 2023 23:23:17 +0200 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ef58cc8 --- /dev/null +++ b/.github/workflows/test.yml @@ -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}