Skip to content

Commit

Permalink
Fix PyYAML and GitHub actions (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaspitfire authored Nov 16, 2023
1 parent cd64919 commit ba21492
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 355 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
exclude = .git,.eggs,.venv,build,dist,__pycache__,Shakersynth.egg-info,mypy_cache,.pytest_cache
8 changes: 3 additions & 5 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Install Poetry
run: pip install poetry
- name: Build package
run: python -m build
run: poetry build
#- name: Publish package
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
# with:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install Poetry
run: pip install poetry
- name: Install Shakersynth
run: |
pip install .
poetry install
- name: Lint with flake8
run: |
flake8 --config=setup.cfg
poetry run flake8
- name: Check with mypy
run: |
mypy --config-file=setup.cfg .
poetry run mypy .
- name: Test with pytest
run: |
pytest --cov=shakersynth
poetry run pytest --cov=shakersynth
Loading

0 comments on commit ba21492

Please sign in to comment.