This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
fix: indentation of multiline string (#10) #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ASort CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install | |
run: python -m pip install -r requirements-test.txt | |
- name: Test | |
run: tox -e coverage | |
- name: Coverage | |
if: matrix.python-version == '3.8' | |
uses: codecov/codecov-action@v1 | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Scan current project | |
uses: anchore/scan-action@v3 | |
with: | |
path: "." | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: isort/isort-action@master | |
with: | |
requirementsFiles: "requirements-test.txt requirements-ci.txt" | |
- uses: psf/black@stable | |
- name: Run Pylint | |
run: | | |
python -m pip install -r requirements-ci.txt | |
pylint src/asort | |
- name: Run Mypy | |
run: mypy src/asort |