-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (64 loc) · 1.95 KB
/
test_s3_remote_reductionist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# adapted GA workflow from https://github.com/stackhpc/reductionist-rs
# This runs Active with a remote Reductionist and S3 data stored elsewhere
---
name: S3/Remote Reductionist
on:
push:
branches:
- main # keep this at all times
pull_request:
schedule:
- cron: '0 0 * * *' # nightly
# Required shell entrypoint to have properly configured bash shell
defaults:
run:
shell: bash -l {0}
jobs:
linux-test:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
- name: Get conda and Python versions
run: |
conda --version
python -V
- name: Export proxy
run: |
echo 'USE_S3 = True' >> activestorage/config.py
echo 'REMOTE_RED = True' >> activestorage/config.py
- name: Ping remote Reductionist
run: curl -k https://192.171.169.248:8080/.well-known/reductionist-schema
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: activestorage-minio
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
miniforge-version: "latest"
use-mamba: true
- name: Install PyActiveStorage
run: |
conda --version
python -V
which python
pip install -e .
- name: Run one single test
run: |
pytest tests/test_compression_remote_reductionist.py
- name: Upload HTML report artifact
uses: actions/upload-artifact@v3
with:
name: html-report
path: test-reports/
if: always()