Debian Codegraph @

.github/workflows/anaconda.yml

raw
1 on:
2 push:
3 pull_request:
4 schedule:
5 - cron: '30 13 * * *'
6 permissions: { }
7 jobs:
8 linux:
9 strategy:
10 fail-fast: false
11 matrix:
12 py:
13 - '3.9'
14 - '3.10'
15 - '3.11'
16 - '3.12'
17 - '3.13'
18 runs-on: 'ubuntu-22.04'
19 env:
20 # Enable fuzzing tests, other expensive tests.
21 ZSTD_SLOW_TESTS: '1'
22 # Make all compile warnings fatal.
23 ZSTD_WARNINGS_AS_ERRORS: '1'
24 # More thorough fuzzing coverage.
25 HYPOTHESIS_PROFILE: 'ci'
26 steps:
27 - name: Set up Python
28 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
29 with:
30 python-version: ${{ matrix.py }}
31
32 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33 with:
34 persist-credentials: false
35
36 - name: Create Anaconda Environment
37 run: |
38 $CONDA/bin/conda create --yes --quiet --name env python=${{ matrix.py }}
39
40 - name: Install Dependencies
41 run: |
42 source $CONDA/bin/activate env
43 $CONDA/bin/conda install --yes --quiet --name env conda-build pip
44 pip install --require-hashes -r ci/requirements.txt
45
46 - name: Build and Test
47 run: |
48 source $CONDA/bin/activate env
49 $CONDA/bin/conda build ci/conda
50 python ci/copy-conda-package.py
51
52 - name: Upload Package
53 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54 with:
55 name: linux-${{ matrix.py }}
56 path: dist
57
58 windows:
59 strategy:
60 fail-fast: false
61 matrix:
62 py:
63 - '3.9'
64 - '3.10'
65 - '3.11'
66 - '3.12'
67 - '3.13'
68 runs-on: 'windows-2022'
69 env:
70 # Enable fuzzing tests, other expensive tests.
71 ZSTD_SLOW_TESTS: '1'
72 # Make all compile warnings fatal.
73 ZSTD_WARNINGS_AS_ERRORS: '1'
74 # More thorough fuzzing coverage.
75 HYPOTHESIS_PROFILE: 'ci'
76 steps:
77 - name: Set up Python
78 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
79 with:
80 python-version: ${{ matrix.py }}
81
82 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
83 with:
84 persist-credentials: false
85
86 - name: Create Anaconda Environment
87 run: |
88 C:\Miniconda\condabin\conda.bat create --yes --quiet --name env python=${{ matrix.py }}
89
90 - name: Install Dependencies
91 run: |
92 C:\Miniconda\condabin\conda.bat install --yes --quiet --name env conda-build pip
93 C:\Miniconda\envs\env\python.exe -m pip install --user --require-hashes -r ci/requirements.txt
94
95 # Disabled because we appear to be hitting https://github.com/conda/conda-build/issues/4835
96 # and we're not sure how to work around.
97 #- name: Build and Test
98 # run: |
99 # C:\Miniconda\envs\env\Scripts\conda-build.exe ci/conda
100 # C:\Miniconda\envs\env\python.exe ci/copy-conda-package.py
101
102 - name: Upload Package
103 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
104 with:
105 name: windows-${{ matrix.py }}
106 path: dist