Skip to content

Commit 133537d

Browse files
Merge pull request #278 from NCAS-CMS/conda_package_testing
add bits related to conda-forge package: badge, links, Github Actions **and** unpin mamba-version from all GHA flows
2 parents 3265118 + bf2e5df commit 133537d

File tree

6 files changed

+82
-7
lines changed

6 files changed

+82
-7
lines changed

.github/workflows/run-s3-test-push.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
python-version: ${{ matrix.python-version }}
2828
miniforge-version: "latest"
2929
use-mamba: true
30-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
3130
- name: Get conda and Python versions
3231
run: |
3332
conda --version
@@ -51,7 +50,6 @@ jobs:
5150
python-version: ${{ matrix.python-version }}
5251
miniforge-version: "latest"
5352
use-mamba: true
54-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
5553
- name: Install PyActiveStorage
5654
run: |
5755
conda --version

.github/workflows/run-test-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
python-version: ${{ matrix.python-version }}
2828
miniforge-version: "latest"
2929
use-mamba: true
30-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
3130
- run: conda --version
3231
- run: python -V
3332
- run: pip install -e .
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Test Conda Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 0 * * *' # nightly
9+
10+
# Required shell entrypoint to have properly configured bash shell
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
15+
jobs:
16+
linux:
17+
runs-on: "ubuntu-latest"
18+
strategy:
19+
matrix:
20+
python-version: ["3.10", "3.11", "3.12", "3.13"]
21+
fail-fast: false
22+
name: Linux Python ${{ matrix.python-version }}
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
- uses: conda-incubator/setup-miniconda@v3
28+
with:
29+
activate-environment: activestorage
30+
python-version: ${{ matrix.python-version }}
31+
miniforge-version: "latest"
32+
use-mamba: true
33+
- run: |
34+
conda --version
35+
mamba --version
36+
python -V
37+
- run: conda list
38+
- run: conda install pyactivestorage
39+
- run: |
40+
conda install moto
41+
conda install pytest
42+
conda install pytest-cov
43+
conda install pytest-html
44+
conda install pytest-metadata
45+
conda install pytest-xdist
46+
- run: conda list
47+
- run: pytest -n 2 -m "not slow" --ignore=tests/test_real_https.py --ignore=tests/test_real_s3.py
48+
49+
osx:
50+
runs-on: "macos-latest"
51+
strategy:
52+
matrix:
53+
python-version: ["3.10", "3.11", "3.12", "3.13"]
54+
fail-fast: false
55+
name: OSX Python ${{ matrix.python-version }}
56+
steps:
57+
- uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
- uses: conda-incubator/setup-miniconda@v3
61+
with:
62+
activate-environment: activestorage
63+
python-version: ${{ matrix.python-version }}
64+
miniforge-version: "latest"
65+
use-mamba: true
66+
- run: |
67+
conda --version
68+
mamba --version
69+
python -V
70+
- run: conda list
71+
- run: conda install -c conda-forge git
72+
- run: conda install pyactivestorage
73+
- run: |
74+
conda install moto
75+
conda install pytest
76+
conda install pytest-cov
77+
conda install pytest-html
78+
conda install pytest-metadata
79+
conda install pytest-xdist
80+
- run: pytest -n 2 -m "not slow" --ignore=tests/test_real_https.py --ignore=tests/test_real_s3.py

.github/workflows/run-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
miniforge-version: "latest"
3333
use-mamba: true
34-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
3534
- run: conda --version
3635
- run: python -V
3736
- run: conda list
@@ -57,7 +56,6 @@ jobs:
5756
python-version: ${{ matrix.python-version }}
5857
miniforge-version: "latest"
5958
use-mamba: true
60-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
6159
- run: conda --version
6260
- run: python -V
6361
- run: conda list

.github/workflows/test_s3_minio.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
miniforge-version: "latest"
3333
use-mamba: true
34-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
3534
- name: Get conda and Python versions
3635
run: |
3736
conda --version
@@ -55,7 +54,6 @@ jobs:
5554
python-version: ${{ matrix.python-version }}
5655
miniforge-version: "latest"
5756
use-mamba: true
58-
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
5957
- name: Install PyActiveStorage
6058
run: |
6159
conda --version

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
44
[![Test](https://github.com/NCAS-CMS/PyActiveStorage/actions/workflows/run-tests.yml/badge.svg)](https://github.com/NCAS-CMS/PyActiveStorage/actions/workflows/run-tests.yml)
55
[![codecov](https://codecov.io/gh/NCAS-CMS/PyActiveStorage/graph/badge.svg?token=1olGjnvAOp)](https://codecov.io/gh/NCAS-CMS/PyActiveStorage)
6+
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyactivestorage/badges/version.svg)](https://anaconda.org/conda-forge/pyactivestorage)
67

78
![pyactivestoragelogo](https://raw.githubusercontent.com/NCAS-CMS/PyActiveStorage/main/doc/figures/PyActiveStorage-logo-complete.jpg)
89

@@ -11,6 +12,7 @@
1112
- [Latest documentation on ReadTheDocs (RTD)](https://pyactivestorage.readthedocs.io/en/latest/)
1213
- [RTD latest builds](https://app.readthedocs.org/projects/pyactivestorage/)
1314
- [GHA Tests](https://github.com/NCAS-CMS/PyActiveStorage/actions)
15+
- [conda-forge feedstock](https://github.com/conda-forge/pyactivestorage-feedstock)
1416

1517
### Create virtual environment
1618

0 commit comments

Comments
 (0)