diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c40ee1c..2a5530a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,11 +23,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: "3.10" architecture: x64 - uses: abatilo/actions-poetry@v2.1.4 with: - poetry-version: '1.1.13' + poetry-version: "1.1.13" - run: poetry build - run: poetry publish env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f52958..3affa02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,41 +10,41 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.10', '3.9', '3.8', '3.7'] - extras: ['', all, soap_api, orjson, cli] + python-version: ["3.10", "3.9", "3.8", "3.7"] + extras: ["", all, soap_api, orjson, cli] os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v3 - with: - python-version: '${{ matrix.python-version }}' - architecture: x64 - - uses: abatilo/actions-poetry@v2.1.4 - with: - poetry-version: '1.1.13' - - run: poetry install --extras ${{ matrix.extras }} - if: matrix.extras != '' - - run: poetry install - if: matrix.extras == '' - - run: poetry run pytest -v + - uses: actions/checkout@v4 + - uses: actions/setup-python@v3 + with: + python-version: "${{ matrix.python-version }}" + architecture: x64 + - uses: abatilo/actions-poetry@v2.1.4 + with: + poetry-version: "1.1.13" + - run: poetry install --extras ${{ matrix.extras }} + if: matrix.extras != '' + - run: poetry install + if: matrix.extras == '' + - run: poetry run pytest -v style: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10'] + python-version: ["3.10"] extras: [all] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v3 - with: - python-version: '${{ matrix.python-version }}' - architecture: x64 - - uses: abatilo/actions-poetry@v2.1.4 - with: - poetry-version: '1.1.13' - - run: poetry install --extras ${{ matrix.extras }} - - run: poetry run flake8 - - run: poetry run mypy --ignore-missing-imports . - - run: poetry run isort --check --diff . - - run: poetry run black --check --diff . + - uses: actions/checkout@v4 + - uses: actions/setup-python@v3 + with: + python-version: "${{ matrix.python-version }}" + architecture: x64 + - uses: abatilo/actions-poetry@v2.1.4 + with: + poetry-version: "1.1.13" + - run: poetry install --extras ${{ matrix.extras }} + - run: poetry run flake8 + - run: poetry run mypy --ignore-missing-imports . + - run: poetry run isort --check --diff . + - run: poetry run black --check --diff . diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4068262..513a50f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -9,16 +9,16 @@ jobs: code_coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v3 - with: - python-version: '3.10' - architecture: x64 - - uses: abatilo/actions-poetry@v2.1.4 - with: - poetry-version: '1.1.13' - - run: poetry install --extras all - - run: poetry run pytest --cov=netsuite --cov-report=xml --cov-report=term - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.xml + - uses: actions/checkout@v4 + - uses: actions/setup-python@v3 + with: + python-version: "3.10" + architecture: x64 + - uses: abatilo/actions-poetry@v2.1.4 + with: + poetry-version: "1.1.13" + - run: poetry install --extras all + - run: poetry run pytest --cov=netsuite --cov-report=xml --cov-report=term + - uses: codecov/codecov-action@v3 + with: + files: ./coverage.xml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1605534..184cbc3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,11 +10,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v3 with: - python-version: '3.9' + python-version: "3.9" architecture: x64 - uses: abatilo/actions-poetry@v2.1.4 with: - poetry-version: '1.1.13' + poetry-version: "1.1.13" - run: poetry install --extras all - run: poetry run mkdocs build - uses: peaceiris/actions-gh-pages@v3.7.3