File: main.yml

package info (click to toggle)
easyprocess 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: python: 774; sh: 25; makefile: 3
file content (71 lines) | stat: -rw-r--r-- 1,856 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
  schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '30 5 1 * *'
  push:
  pull_request:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: 
          - "ubuntu-18.04"
          - "macos-10.15"
          - "macos-11"
          - "windows-2019"
          - "windows-2022"
        python-version: 
          - "3.9"
          - "3.10"
        stdfile: 
          - "pipe"
          - "tempfile"
        include:
          - python-version: "3.6"
            os: ubuntu-20.04
            stdfile: "tempfile"
          - python-version: "3.7"
            os: ubuntu-20.04
            stdfile: "tempfile"
          - python-version: "3.8"
            os: ubuntu-20.04
            stdfile: "tempfile"
          - python-version: "3.9"
            os: ubuntu-20.04
            stdfile: "tempfile"
          - python-version: "3.10"
            os: ubuntu-20.04
            stdfile: "tempfile"
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install .
        pip install -r requirements-test.txt
    - name: Test with pytest (tempfiles)
      if: matrix.stdfile == 'tempfile'
      run: |
        cd tests
        pytest -v .
    - name: Test with pytest (pipes)
      if: matrix.stdfile == 'pipe'
      run: |
        cd tests
        pytest -v .
      env:
        EASYPROCESS_USE_TEMP_FILES: 0        
    - name: Lint
      if: matrix.os == 'ubuntu-20.04'
      run: |
        ./lint.sh