Skip to content

chore(deps-dev): bump coverage from 7.5.4 to 7.6.0 #22

chore(deps-dev): bump coverage from 7.5.4 to 7.6.0

chore(deps-dev): bump coverage from 7.5.4 to 7.6.0 #22

Workflow file for this run

name: Tests and Pre-build
on:
pull_request:
branches:
- main
# For manual triggers
workflow_dispatch:
jobs:
test:
if: github.actor != 'actions[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup tests
run: |
pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
- name: Run tests & CodeCov
run: |
coverage run -m pytest
coverage report
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
pre_build:
if: github.actor != 'actions[bot]'
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Poetry Setup
run: |
pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
- name: Generate and push Tag
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git push
git tag -f $(poetry version -s)
git push -f origin --tags