Skip to content

fix tests

fix tests #32

Workflow file for this run

---
name: Verify and Bump
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install OpenTofu
uses: opentofu/setup-opentofu@v1
with:
tofu_version: "latest"
tofu_wrapper: false
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-datafiles pytest-pylint
- name: Run tests
run: pytest tests/ -v
- name: Check code formatting with black
run: |
pip install black==22.6.0
black --check --line-length=79 .
bump-version:
name: Bump version
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: "true"