mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
Testing multiple python versions.
This commit is contained in:
parent
83d2d2a1c9
commit
3ee9492c37
1 changed files with 44 additions and 6 deletions
|
|
@ -5,9 +5,7 @@ version: 2.1
|
|||
# Define a job to be invoked later in a workflow.
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
|
||||
jobs:
|
||||
api-tests:
|
||||
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
|
||||
api-tests-3.8:
|
||||
docker:
|
||||
- image: cimg/python:3.8
|
||||
- image: cimg/postgres:12.9
|
||||
|
|
@ -15,8 +13,46 @@ jobs:
|
|||
POSTGRES_USER: postgres
|
||||
POSTGRES_DB: wrolpi
|
||||
POSTGRES_PASSWORD: "wrolpi"
|
||||
# Add steps to the job
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get install -y ffmpeg texlive-latex-base texlive-latex-extra
|
||||
- run:
|
||||
name: Install Requirements
|
||||
command: |
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
- run:
|
||||
command: './venv/bin/pytest -svv wrolpi modules'
|
||||
api-tests-3.9:
|
||||
docker:
|
||||
- image: cimg/python:3.9
|
||||
- image: cimg/postgres:12.9
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_DB: wrolpi
|
||||
POSTGRES_PASSWORD: "wrolpi"
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get install -y ffmpeg texlive-latex-base texlive-latex-extra
|
||||
- run:
|
||||
name: Install Requirements
|
||||
command: |
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
- run:
|
||||
command: './venv/bin/pytest -svv wrolpi modules'
|
||||
api-tests-3.10:
|
||||
docker:
|
||||
- image: cimg/python:3.10
|
||||
- image: cimg/postgres:12.9
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_DB: wrolpi
|
||||
POSTGRES_PASSWORD: "wrolpi"
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo apt-get update
|
||||
|
|
@ -33,4 +69,6 @@ jobs:
|
|||
workflows:
|
||||
wrolpi-api-tests:
|
||||
jobs:
|
||||
- api-tests
|
||||
- api-tests-3.8
|
||||
- api-tests-3.9
|
||||
- api-tests-3.10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue