Skip to content

OPS: Fix pull request workflow #251

OPS: Fix pull request workflow

OPS: Fix pull request workflow #251

Workflow file for this run

# This workflow will install the Python dependencies and run the tests.
name: python-ci
on:
push:
branches-ignore:
- main
jobs:
check-semantic-version:
if: "!contains(github.event.head_commit.message, 'skipci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Set fetch-depth to 0 to fetch all tags (necessary for git-mkver to determine the correct semantic version).
fetch-depth: 0
- uses: octue/check-semantic-version@1.0.0.beta-9
with:
path: setup.py
breaking_change_indicated_by: minor
tests:
if: "!contains(github.event.head_commit.message, 'skipci')"
runs-on: ubuntu-latest
env:
USING_COVERAGE: '3.8'
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install tox
run: pip install tox
- name: Run tests
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}