Skip to content

Commit b131768

Browse files
committed
add GHA that installs package from conda forge
1 parent 409d5fe commit b131768

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Test Conda Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- conda_package_testing
8+
schedule:
9+
- cron: '0 0 * * *' # nightly
10+
11+
# Required shell entrypoint to have properly configured bash shell
12+
defaults:
13+
run:
14+
shell: bash -l {0}
15+
16+
jobs:
17+
linux:
18+
runs-on: "ubuntu-latest"
19+
strategy:
20+
matrix:
21+
python-version: ["3.10", "3.11", "3.12", "3.13"]
22+
fail-fast: false
23+
name: Linux Python ${{ matrix.python-version }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- uses: conda-incubator/setup-miniconda@v3
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
miniforge-version: "latest"
32+
use-mamba: true
33+
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
34+
- run: conda --version
35+
- run: python -V
36+
- run: conda list
37+
- run: conda install pyactivestorage
38+
- run: conda list
39+
- run: pytest -n 2
40+
41+
osx:
42+
runs-on: "macos-latest"
43+
strategy:
44+
matrix:
45+
python-version: ["3.10", "3.11", "3.12", "3.13"]
46+
fail-fast: false
47+
name: OSX Python ${{ matrix.python-version }}
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
- uses: conda-incubator/setup-miniconda@v3
53+
with:
54+
python-version: ${{ matrix.python-version }}
55+
miniforge-version: "latest"
56+
use-mamba: true
57+
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
58+
- run: conda --version
59+
- run: python -V
60+
- run: conda list
61+
- run: conda install -c conda-forge git
62+
- run: conda install pyactivestorage
63+
- run: pytest -n 2

0 commit comments

Comments
 (0)