-
Notifications
You must be signed in to change notification settings - Fork 17
80 lines (77 loc) · 2.03 KB
/
main.yml
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
72
73
74
75
76
77
78
79
80
# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
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-22.04"
- "macos-11"
- "macos-12"
- "windows-2019"
- "windows-2022"
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
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"
- python-version: "3.11"
os: ubuntu-20.04
stdfile: "tempfile"
- python-version: "3.12"
os: ubuntu-20.04
stdfile: "tempfile"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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