Skip to content

Commit

Permalink
ci: fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Teagum committed Jun 7, 2024
1 parent fd4aa0a commit 4517e8a
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 30 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ on: [push]
jobs:
typecheck:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: snok/install-poetry@v1
- uses: actions/checkout@v3
- run: poetry install --with=development
- run: poetry run mypy --strict src/apollon
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/install-poetry@v1
- name: Install project
run: poetry install --with=development
- name: Typechecking ...
run: poetry run -- mypy --strict src/apollon
19 changes: 13 additions & 6 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python $${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: snok/install-poetry@v1
- uses: actions/checkout@v3
- run: poetry install --with=development
- run: poetry run pylint src/apollon --persistent n
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/install-poetry@v1
- name: Install project
run: poetry install --with=development
- name: Linting ...
run: poetry run -- pylint --persistent n --jobs 0 src/apollon
26 changes: 13 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: tests

on: [push]

jobs:
run-unittests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python $${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
- run: python3 -m pip install --user pipx
- run: python3 -m pipx ensurepath
- run: pipx install tox
- run: tox r

python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/install-poetry@v1
- name: Install project
run: poetry install --with=development
- name: Testing ...
run: poetry run -- python -m unittest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![mypy](https://github.com/ifsm/apollon/actions/workflows/mypy.yml/badge.svg)](https://github.com/ifsm/apollon/actions/workflows/mypy.yml)
[![pylint](https://github.com/ifsm/apollon/actions/workflows/pylint.yml/badge.svg)](https://github.com/ifsm/apollon/actions/workflows/pylint.yml)

[![tests](https://github.com/ifsm/apollon/actions/workflows/tests.yml/badge.svg)](https://github.com/ifsm/apollon/actions/workflows/tests.yml)
# Apollon
Apollon is a Python framework for audio feature extraction and music similarity
estimation. It includes subpackages for
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ignore_missing_imports = true
module = "mir_eval"
ignore_missing_imports = true

[tool.pylint.main]
ignore-patterns = ["^\\.#", "^.*.pyi"]

[tool.pylint.basic]
good-names = ["_", "i", "j", "n", "ax"]
max-args = 6
Expand Down

0 comments on commit 4517e8a

Please sign in to comment.