forked from conda-incubator/conda-store
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (72 loc) · 2.16 KB
/
test_conda_store.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: "Test conda-store"
env:
FORCE_COLOR: "1" # Make tools pretty.
PYTHONUNBUFFERED: "1" # Make stdout and stderr behave well
on:
pull_request:
paths:
- ".github/workflows/**"
- ".github/actions/**"
- "conda-store/**"
- "conda-store-server/**"
- "examples/**"
- "tests/**"
push:
branches:
- main
# ensuring only one instance is running at a given time
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test-conda-store:
name: "integration-test conda-store"
runs-on: ubuntu-latest
defaults:
run:
working-directory: conda-store
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: "Checkout Repository 🛎"
uses: actions/checkout@v4
- name: "Set up Python 🐍"
uses: actions/setup-python@v5
with:
python-version-file: .python-version-default
cache: "pip"
- name: "Install Dependencies 📦"
run: |
sudo apt install wait-for-it -y
python -m pip install hatch
# install conda-store
pip install .
- name: "Linting Checks 🧹"
run: |
hatch env run -e lint lint
- name: "Deploy docker compose 🏗️"
run: |
docker compose up -d
docker ps
wait-for-it localhost:5432 # postgresql
wait-for-it localhost:9000 # minio
wait-for-it localhost:8080 # conda-store-server
- name: "Run basic tests - not authenticated"
run: |
sleep 20
./tests/unauthenticated-tests.sh
- name: "Run basic tests - authenticated"
run: |
./tests/authenticated-tests.sh
- name: "Test shebang"
run: |
export CONDA_STORE_URL=http://localhost:8080/conda-store
export CONDA_STORE_AUTH=basic
export CONDA_STORE_USERNAME=username
export CONDA_STORE_PASSWORD=password
./tests/shebang.sh
- name: "Get Docker logs 🔍"
if: ${{ failure() }}
run: |
docker compose logs