Skip to content

cryptic-wizard/run-behave-tests

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-behave-tests

A Github action to run Behave Behavioral Driven Development tests for Python

Tests

Python 3.10.5 Minimal

Python 3.10.5 OS Matrix

Python 3.10.5 Feature Test

Usage

Example Project Structure

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
  with:
    python-version: 3.10.5
- uses: cryptic-wizard/run-behave-tests@v0.4.0
  with:
    test-path: example_project
    test-output-name: results.txt
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    
  steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-python@v5
    with:
      python-version: 3.10.5
  - uses: cryptic-wizard/run-behave-tests@v0.4.0
    with:
      test-path: example_project
      test-output-name: ${{ matrix.os }}.txt
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        python-version: ['3.8', '3.9', '3.10.5']
        exclude:
          - os: ubuntu-latest
            python-version: '3.9'
          - os: windows-latest
            python-version: '3.10.5'

  steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-python@v5
    with:
      python-version: ${{ matrix.python-version }}
  - uses: cryptic-wizard/run-behave-tests@v0.4.0
    with:
      test-path: example_project
      test-output-name: ${{ matrix.os }}-${{ matrix.python-version }}.txt

Features

Recently Added

  • v0.4.0 - Update upload-artifact compatiblity, Fix test-output-name
test-output-name: MyTestResults.txt
upload-artifact: true by default
requirements-name:
test-path:
test-output-name:

Planned Automation Features

  • Additional behave arguments

Tools

License