Use existing enum for new column #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out odp-server | |
uses: actions/checkout@v4 | |
with: | |
path: odp-server | |
- name: Check out odp-core | |
uses: actions/checkout@v4 | |
with: | |
repository: SAEON/odp-core | |
path: odp-core | |
- name: Check out odp-ui | |
uses: actions/checkout@v4 | |
with: | |
repository: SAEON/odp-ui | |
path: odp-ui | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
working-directory: odp-server | |
run: | | |
python -m pip install --upgrade pip pip-tools | |
pip-sync | |
- name: Set up testing environment | |
working-directory: odp-server/test | |
shell: bash | |
run: | | |
cp .env.test .env | |
docker-compose up -d | |
sleep 30s | |
- name: Run the tests | |
working-directory: odp-server/test | |
run: | | |
coverage run -m pytest | |
coverage xml | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: odp-server/test |