pywt

Форк
0
/
emscripten.yml 
57 строк · 1.9 Кб
1
name: Test Pyodide build
2

3
on:
4
  push:
5
    branches:
6
      # Runs on every merge to main to upload .dev0 wheels to anaconda.org
7
      - main
8
      - v1.**
9
  pull_request:
10
    branches:
11
      - main
12
      - v1.**
13
  # Make it possible to upload wheels manually if needed
14
  workflow_dispatch:
15
    inputs:
16
      push_wheels:
17
        description: >
18
          'Push wheels to Anaconda if "true". Default is "false". Warning: this will overwrite existing wheels.'
19
        required: false
20
        default: "false"
21
  # Upload wheels to anaconda.org on a schedule
22
  schedule:
23
    # Run at 0300 hours on days 3 and 17 of the month
24
    - cron: "0 3 3,17 * *"
25

26
env:
27
  FORCE_COLOR: 3
28

29
jobs:
30
  build_wasm_emscripten:
31
    name: Build PyWavelets for Pyodide
32
    runs-on: ubuntu-22.04
33
    # Comment out the following line to test changes on a fork
34
    if: github.repository == 'PyWavelets/pywt'
35
    steps:
36
      - name: Check out repository
37
        uses: actions/checkout@v4
38

39
      - name: Build and test PyWavelets
40
        uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
41
        env:
42
          CIBW_PLATFORM: pyodide
43
          CIBW_TEST_REQUIRES: pytest matplotlib
44
          CIBW_TEST_COMMAND: python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])"
45

46
        # https://anaconda.org/scientific-python-nightly-wheels/pywavelets
47
        # WARNING: this job will overwrite existing wheels.
48
      - name: Push wheels to Anaconda PyPI index
49
        if: >-
50
          (github.repository == 'PyWavelets/pywt') &&
51
          (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
52
          (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
53
          (github.event_name == 'schedule')
54
        uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # v0.5.0
55
        with:
56
          artifacts_path: wheelhouse/
57
          anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
58

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

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

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

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