Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve github actions gha tests on main branch #244

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Build and publish PyActiveStorage on PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.13
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-condalock-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Create and verify conda lock file for latest Python
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install-from-condalock-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/run-test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -27,9 +27,17 @@ jobs:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
- run: conda --version
- run: python -V
- name: Install development version of NCAS-CMS/Pyfive:wacasoft
run: |
cd ..
git clone https://github.com/NCAS-CMS/pyfive.git
cd pyfive
git checkout wacasoft
pip install -e .
- run: pip install -e .
- run: conda list
- run: pytest -n 2 --junitxml=report-1.xml
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
21 changes: 19 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- pyfive
schedule:
- cron: '0 0 * * *' # nightly

Expand All @@ -21,7 +22,7 @@ jobs:
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -31,8 +32,16 @@ jobs:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
- run: conda --version
- run: python -V
- name: Install development version of NCAS-CMS/Pyfive:wacasoft
run: |
cd ..
git clone https://github.com/NCAS-CMS/pyfive.git
cd pyfive
git checkout wacasoft
pip install -e .
- run: conda list
- run: pip install -e .
- run: conda list
Expand All @@ -46,7 +55,7 @@ jobs:
fail-fast: false
name: OSX Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -56,8 +65,16 @@ jobs:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
- run: conda --version
- run: python -V
- name: Install development version of NCAS-CMS/Pyfive:wacasoft
run: |
cd ..
git clone https://github.com/NCAS-CMS/pyfive.git
cd pyfive
git checkout wacasoft
pip install -e .
- run: conda list
- run: mamba install -c conda-forge git
- run: pip install -e .
Expand Down
25 changes: 17 additions & 8 deletions .github/workflows/test_s3_minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ jobs:
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
- name: Get conda and Python versions
run: |
conda --version
Expand All @@ -55,6 +56,14 @@ jobs:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
mamba-version: "2.0.5" # https://github.com/conda-incubator/setup-miniconda/issues/392
- name: Install development version of NCAS-CMS/Pyfive:wacasoft
run: |
cd ..
git clone https://github.com/NCAS-CMS/pyfive.git
cd pyfive
git checkout wacasoft
pip install -e .
- name: Install PyActiveStorage
run: |
conda --version
Expand All @@ -79,10 +88,10 @@ jobs:
- name: Stop minio object storage
run: tests/s3_exploratory/minio_scripts/minio-stop
if: always()
- name: Upload HTML report artifact
uses: actions/upload-artifact@v4
with:
name: html-report
path: test-reports/
overwrite: true
if: always()
#- name: Upload HTML report artifact
# uses: actions/upload-artifact@v4
# with:
# name: html-report
# path: test-reports/
# overwrite: true
# if: always()
Loading