From fc8acd26cf846a904f6db114a667da33a38078a4 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 30 Jan 2024 12:40:17 +0000 Subject: [PATCH] add nbtest job to the GitHub Actions CI --- .github/workflows/tests.yml | 24 +++++++++++++++++++ .../integrations/hugging-face/.nbtest.yml | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 notebooks/integrations/hugging-face/.nbtest.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..2d3f8da1 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: notebook-tests +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + tests: + runs-on: ubuntu-latest + services: + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0 + env: + discovery.type: single-node + xpack.security.enabled: false + xpack.security.http.ssl.enabled: false + xpack.license.self_generated.type: trial + ports: + - 9200:9200 + steps: + - run: curl http://localhost:9200 + - run: curl http://127.0.0.1:9200 diff --git a/notebooks/integrations/hugging-face/.nbtest.yml b/notebooks/integrations/hugging-face/.nbtest.yml new file mode 100644 index 00000000..0b88e44d --- /dev/null +++ b/notebooks/integrations/hugging-face/.nbtest.yml @@ -0,0 +1,2 @@ +masks: +- 'Score: [0-9]+\.[0-9][0-9]*'