Pillow

Форк
0
/
test-cygwin.yml 
151 строка · 3.7 Кб
1
name: Test Cygwin
2

3
on:
4
  push:
5
    branches:
6
      - "**"
7
    paths-ignore:
8
      - ".github/workflows/docs.yml"
9
      - ".github/workflows/wheels*"
10
      - ".gitmodules"
11
      - "docs/**"
12
      - "wheels/**"
13
  pull_request:
14
    paths-ignore:
15
      - ".github/workflows/docs.yml"
16
      - ".github/workflows/wheels*"
17
      - ".gitmodules"
18
      - "docs/**"
19
      - "wheels/**"
20
  workflow_dispatch:
21

22
permissions:
23
  contents: read
24

25
concurrency:
26
  group: ${{ github.workflow }}-${{ github.ref }}
27
  cancel-in-progress: true
28

29
env:
30
  COVERAGE_CORE: sysmon
31

32
jobs:
33
  build:
34
    runs-on: windows-latest
35
    strategy:
36
      fail-fast: false
37
      matrix:
38
        python-minor-version: [9]
39

40
    timeout-minutes: 40
41

42
    name: Python 3.${{ matrix.python-minor-version }}
43

44
    steps:
45
      - name: Fix line endings
46
        run: |
47
          git config --global core.autocrlf input
48

49
      - name: Checkout Pillow
50
        uses: actions/checkout@v4
51

52
      - name: Install Cygwin
53
        uses: cygwin/cygwin-install-action@v4
54
        with:
55
          packages: >
56
            gcc-g++
57
            ghostscript
58
            git
59
            ImageMagick
60
            jpeg
61
            libfreetype-devel
62
            libimagequant-devel
63
            libjpeg-devel
64
            liblapack-devel
65
            liblcms2-devel
66
            libopenjp2-devel
67
            libraqm-devel
68
            libtiff-devel
69
            libwebp-devel
70
            libxcb-devel
71
            libxcb-xinerama0
72
            make
73
            netpbm
74
            perl
75
            python3${{ matrix.python-minor-version }}-cython
76
            python3${{ matrix.python-minor-version }}-devel
77
            python3${{ matrix.python-minor-version }}-ipython
78
            python3${{ matrix.python-minor-version }}-numpy
79
            python3${{ matrix.python-minor-version }}-sip
80
            python3${{ matrix.python-minor-version }}-tkinter
81
            wget
82
            xorg-server-extra
83
            zlib-devel
84

85
      - name: Add Lapack to PATH
86
        uses: egor-tensin/cleanup-path@v4
87
        with:
88
          dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
89

90
      - name: Select Python version
91
        run: |
92
          ln -sf c:/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/cygwin/bin/python3
93

94
      - name: pip cache
95
        uses: actions/cache@v4
96
        with:
97
          path: 'C:\cygwin\home\runneradmin\.cache\pip'
98
          key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
99
          restore-keys: |
100
            ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-
101

102
      - name: Build system information
103
        run: |
104
          dash.exe -c "python3 .github/workflows/system-info.py"
105

106
      - name: Install dependencies
107
        run: |
108
          bash.exe .ci/install.sh
109

110
      - name: Build
111
        shell: bash.exe -eo pipefail -o igncr "{0}"
112
        run: |
113
          .ci/build.sh
114

115
      - name: Test
116
        run: |
117
          bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
118

119
      - name: Prepare to upload errors
120
        if: failure()
121
        run: |
122
          dash.exe -c "mkdir -p Tests/errors"
123

124
      - name: Upload errors
125
        uses: actions/upload-artifact@v4
126
        if: failure()
127
        with:
128
          name: errors
129
          path: Tests/errors
130

131
      - name: After success
132
        run: |
133
          bash.exe .ci/after_success.sh
134

135
      - name: Upload coverage
136
        uses: codecov/codecov-action@v4
137
        with:
138
          file: ./coverage.xml
139
          flags: GHA_Cygwin
140
          name: Cygwin Python 3.${{ matrix.python-minor-version }}
141
          token: ${{ secrets.CODECOV_ORG_TOKEN }}
142

143
  success:
144
    permissions:
145
      contents: none
146
    needs: build
147
    runs-on: ubuntu-latest
148
    name: Cygwin Test Successful
149
    steps:
150
      - name: Success
151
        run: echo Cygwin Test Successful
152

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.