Update .gitlab-ci.yml file
parent
64d770d51b
commit
71de834642
|
@ -1,24 +1,15 @@
|
|||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
script:
|
||||
- python3 -m pip install --upgrade pip
|
||||
- pip3 install testing.postgresql
|
||||
- pip3 install sqlalchemy
|
||||
- pip3 install pgmock
|
||||
- pip3 install psycopg2
|
||||
- pip3 install unittest
|
||||
- pip3 install pytest
|
||||
- name: Run tests
|
||||
script:
|
||||
python3 -m unittest tests/*
|
||||
pytest:
|
||||
stage: test
|
||||
image: python-latest
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
before_script:
|
||||
- python3 -m pip install --upgrade pip
|
||||
- pip3 install testing.postgresql
|
||||
- pip3 install sqlalchemy
|
||||
- pip3 install pgmock
|
||||
- pip3 install psycopg2
|
||||
- pip3 install unittest
|
||||
- pip3 install pytest
|
||||
script:
|
||||
python3 -m unittest tests/*
|
Loading…
Reference in New Issue