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 31b7c46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

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

0 comments on commit 31b7c46

Please sign in to comment.