Skip to content

Merge pull request #7 from Validus-Risk-Management/optional-pip-config #2

Merge pull request #7 from Validus-Risk-Management/optional-pip-config

Merge pull request #7 from Validus-Risk-Management/optional-pip-config #2

Workflow file for this run

name: Package & Publish
on:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, "3.10" ]
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 Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4
- name: Install dependencies
run: |
poetry install
- name: Run pre-commit checks
run: |
poetry run pre-commit run --all
- name: Run pytest
run: |
poetry run pytest --cov partifact --cov-report term-missing --cov-report xml
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}