Skip to content

Commit

Permalink
Update workflows (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Feb 9, 2024
1 parent f564c07 commit 976a143
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 90 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: Build

on:
push:
branches:
- main
pull_request:
paths:
- "data/**"
- ".github/workflows/build.yml"
pull_request:
branches:
- "main"
- "pos_tagger_scripts/**"
- "dict_tools/**"

jobs:
build:
Expand Down Expand Up @@ -163,6 +165,9 @@ jobs:
- name: Test LT
working-directory: ${{ env.LT_HOME }}
if: >
(contains(github.event.pull_request.head.commit.message, '[skip lt test]') == false) &&
(contains(github.event.pull_request.labels.*.name, 'skip_lt_test') == false)
run: |
mvn clean install -DskipTests
./build.sh pt test
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/deploy.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/flake8.yml"
pull_request:
paths:
- "**/*.py"
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/flake8.yml"

jobs:
lint:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on:
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/pytest.yml"
pull_request:
paths:
- "**/*.py"
- "tests/"
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/pytest.yml"

jobs:
test:
Expand All @@ -27,11 +34,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
- name: Cache Poetry virtualenv
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Check Poetry config
run: poetry check
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Flake8](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/flake8.yml/badge.svg)](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/flake8.yml)
[![Pytest](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/pytest.yml/badge.svg)](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/pytest.yml)
[![Build+Test](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/build.yml/badge.svg)](https://github.com/languagetool-org/portuguese-pos-dict/actions/workflows/build.yml)

# portuguese-pos-dict

Expand Down

0 comments on commit 976a143

Please sign in to comment.