From 06dae4fd19a64c9f5d1d76950ad6674c3fdbe8b6 Mon Sep 17 00:00:00 2001 From: Kristoffer Andersson Date: Mon, 15 Apr 2024 10:58:15 +0200 Subject: [PATCH] ci: configure CI --- .../{release.yml => release-sentence-sentiment-kb-sent.yml} | 6 +++--- .github/workflows/scheduled.yml | 2 ++ .github/workflows/test.yml | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{release.yml => release-sentence-sentiment-kb-sent.yml} (93%) diff --git a/.github/workflows/release.yml b/.github/workflows/release-sentence-sentiment-kb-sent.yml similarity index 93% rename from .github/workflows/release.yml rename to .github/workflows/release-sentence-sentiment-kb-sent.yml index 2681fb0..6bcfb42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-sentence-sentiment-kb-sent.yml @@ -5,7 +5,7 @@ on: branches: - main tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - 'sentence-sentiment-kb-sent-v[0-9]+.[0-9]+.[0-9]+' pull_request: merge_group: @@ -88,10 +88,10 @@ jobs: name: pypi_files path: dist - - run: rm -r + - run: rm -r sparv-sbx-sentence-sentiment-kb-sent/src - run: pip install typing-extensions - run: pip install -r tests/requirements-testing.lock - - run: pip install --no-index --no-deps --find-links dist --force-reinstall + - run: pip install sparv-sbx-sentence-sentiment-kb-sent --no-index --no-deps --find-links dist --force-reinstall - run: pytest # https://github.com/marketplace/actions/alls-green#why used for branch protection checks diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 48b4288..df4f7a9 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -22,6 +22,7 @@ jobs: nightly: runs-on: ubuntu-latest name: ubuntu / 3.13-dev + continue-on-error: true # allow failure until py3.8 is dropped steps: - uses: actions/checkout@v4 with: @@ -54,6 +55,7 @@ jobs: # There's no point running this if no Cargo.lock was checked in in the first place, since we'd # just redo what happened in the regular test job. Unfortunately, hashFiles only works in if on # steps, so we repeat it. + continue-on-error: true # allow failure until py3.8 is dropped steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71ca30a..f80e69a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: - "3.9" - "3.10" - "3.11" - - "3.12" + # - "3.12" runs-on: ${{ matrix.os }}-latest env: @@ -92,6 +92,7 @@ jobs: os: [ubuntu] runs-on: ${{ matrix.os }}-latest + continue-on-error: true # allow failure until doctests are added env: OS: ${{ matrix.os }}-latest steps: