Skip to content

0.1.0

0.1.0 #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "releases/**"
pull_request:
branches:
- "*"
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pipenv"
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash
- name: Install Pipfile packages
run: pipenv sync --python 3.10 --dev
shell: bash
- name: Formatting
run: pipenv run black --diff .
- name: Sort imports
run: pipenv run isort --check --diff .
- name: Lint
run: pipenv run flake8
- name: Type check
run: pipenv run mypy --strict --junit-xml=mypy-results.xml music_interpolation/
- name: Test
run: pipenv run pytest --junit-xml=pytest-results.xml
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: Test results
path: |
pytest-results.xml
mypy-results.xml
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: pytest-results.xml