Skip to content

Commit

Permalink
ci: configure CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Apr 15, 2024
1 parent 1929840 commit 34b5ec6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: release
name: release-sentence-sentiment-kb-sent

on:
push:
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:

Expand Down Expand Up @@ -46,15 +46,15 @@ jobs:
# ----- build distribution -----
#----------------------------------------------
- name: Build distribution
run: make build
run: cd sparv-sbx-sentence-sentiment-kb-sent && make build

#----------------------------------------------
# ----- upload artifacts -----
#----------------------------------------------
- uses: actions/upload-artifact@v4
with:
name: pypi_files
path: dist
path: sparv-sbx-sentence-sentiment-kb-sent/dist

test-build:
# This action runs the test suite on the built artifact in the `build` action.
Expand Down Expand Up @@ -88,10 +88,10 @@ jobs:
name: pypi_files
path: dist

- run: rm -r <INSERT PROJECT SRC>
- 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 <INSERT PROJECT NAME> --no-index --no-deps --find-links dist --force-reinstall
- run: pip install -r sparv-sbx-sentence-sentiment-kb-sent/tests/requirements-testing.lock
- 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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
# - "3.12"

runs-on: ${{ matrix.os }}-latest
env:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sparv-sbx-sentence-sentiment-kb-sent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Maturity badge - level 2](https://img.shields.io/badge/Maturity-Level%202%20--%20First%20Release-yellowgreen.svg)](https://github.com/spraakbanken/getting-started/blob/main/scorecard.md)
[![Stage](https://img.shields.io/pypi/status/sparv-sbx-sentence-sentiment-kb-sent)](https://pypi.org/project/sparv-sbx-sentence-sentiment-kb-sent/)

[![CI(release)](https://github.com/spraakbanken/sparv-sbx-word-prediction/actions/workflows/release-kb-bert.yml/badge.svg)](https://github.com/spraakbanken/sparv-sbx-word-prediction/actions/workflows/release-kb-bert.yml)
[![CI(release)](https://github.com/spraakbanken/sparv-sbx-sentiment-analysis/actions/workflows/release-sentence-sentiment-kb-sent.yml/badge.svg)](https://github.com/spraakbanken/sparv-sbx-sentiment-analysis/actions/workflows/release-sentence-sentiment-kb-sent.yml)

Plugin for applying bert masking as a [Sparv](https://github.com/spraakbanken/sparv-pipeline) annotation.

Expand Down

0 comments on commit 34b5ec6

Please sign in to comment.