Skip to content

Commit

Permalink
Add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Apr 1, 2021
1 parent 478e270 commit bec4404
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Build
on: [push, pull_request]

jobs:
Expand All @@ -17,14 +17,11 @@ jobs:
poetry-version: 1.1.5
- name: Poetry install
run: poetry install
- name: Pylint
run: poetry run pylint ./src
- name: Black
run: poetry run black --check ./src
- name: Pytest
run: poetry run pytest
- name: Coveralls
run: poetry run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

- name: Build AppImage
run: make build
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tests
on: [push, pull_request]

jobs:
test_linux:
name: Test on Linux64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system deps
run: sudo apt-get update && sudo apt-get install libgirepository1.0-dev libcairo2-dev python3-gi
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.5
- name: Poetry install
run: poetry install
- name: Pylint
run: poetry run pylint ./src
- name: Black
run: poetry run black --check ./src
- name: Pytest
run: poetry run pytest

0 comments on commit bec4404

Please sign in to comment.