ci: use asdf for py and poetry versions #76
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: codecov | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
code_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ASDF Parse | |
uses: kota65535/[email protected] | |
id: versions | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ steps.versions.outputs.python }}" | |
architecture: x64 | |
- uses: abatilo/[email protected] | |
with: | |
poetry-version: "${{ steps.versions.outputs.poetry }}" | |
- 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 |