Skip to content

Run 1Password/check-signed-commits-action for PRs (#110) #145

Run 1Password/check-signed-commits-action for PRs (#110)

Run 1Password/check-signed-commits-action for PRs (#110) #145

Workflow file for this run

name: Tests
permissions:
contents: read
on:
push:
branches: main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Test
run: |
poetry run pytest src/tests --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}