github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/python/.github/workflows/dev.yml (about)

     1  # This is a basic workflow to help you get started with Actions
     2  
     3  name: dev workflow
     4  
     5  # Controls when the action will run.
     6  on:
     7    # Triggers the workflow on push or pull request events but only for the master branch
     8    push:
     9      branches: [ master, main ]
    10    pull_request:
    11      branches: [ master, main ]
    12  
    13    # Allows you to run this workflow manually from the Actions tab
    14    workflow_dispatch:
    15  
    16  # A workflow run is made up of one or more jobs that can run sequentially or in parallel
    17  jobs:
    18    # This workflow contains a single job called "test"
    19    test:
    20      # The type of runner that the job will run on
    21      strategy:
    22        matrix:
    23          python-versions: [3.6, 3.7, 3.8, 3.9]
    24          os: [ubuntu-18.04, macos-latest, windows-latest]
    25      runs-on: ${{ matrix.os }}
    26  
    27      # Steps represent a sequence of tasks that will be executed as part of the job
    28      steps:
    29        # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    30        - uses: actions/checkout@v2
    31        - uses: actions/setup-python@v2
    32          with:
    33            python-version: ${{ matrix.python-versions }}
    34  
    35        - name: Install dependencies
    36          run: |
    37            python -m pip install --upgrade pip
    38            pip install poetry tox tox-gh-actions
    39  
    40        - name: test with tox
    41          run:
    42            tox
    43  
    44        - name: list files
    45          run: ls -l .
    46  
    47        - uses: codecov/codecov-action@v1
    48          with:
    49            fail_ci_if_error: true
    50            files: coverage.xml