forked from instana/python-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 1.92 KB
/
python_next_test.yml
File metadata and controls
66 lines (62 loc) · 1.92 KB
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
name: Test Python future version
on:
workflow_dispatch: # Manual trigger.
schedule:
- cron: '3 1 * * 1-5' # Every Monday to Friday at 03:01 AM.
push:
branches:
- main
- python3150_ghaction
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/pvital/pvital-python:latest
# services:
# postgres:
# image: public.ecr.aws/docker/library/postgres:16.10-trixie
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: passw0rd
# POSTGRES_DB: instana_test_db
# mariadb:
# image: public.ecr.aws/docker/library/mariadb:11.3.2
# env:
# MYSQL_ROOT_PASSWORD: passw0rd
# MYSQL_DATABASE: instana_test_db
# redis:
# image: public.ecr.aws/docker/library/redis:7.2.4-bookworm
# rabbitmq:
# image: public.ecr.aws/docker/library/rabbitmq:3.13.0
# mongo:
# image: public.ecr.aws/docker/library/mongo:7.0.6
# gcloud-pubsub:
# image: quay.io/thekevjames/gcloud-pubsub-emulator:latest
# env:
# PUBSUB_EMULATOR_HOST: 0.0.0.0:8681
# PUBSUB_PROJECT1: test-project,test-topic
steps:
- uses: actions/checkout@v5
#- name: Set up Python 3.15.0
# uses: actions/setup-python@v5
# with:
# python-version: 3.15.0-alpha.7
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Check code
run: |
pwd
ls -l ${HOME}
ls -l /root/base
- name: Install Python dependencies
run: |
. venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
#- name: Install Python test dependencies
# run: |
# pip install -r tests/requirements-pre315.txt
# - name: Test with pytest
# run: |
# . venv/bin/activate
# pytest -v tests