server, migration: refactor vulnsearch migration #258
Workflow file for this run
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: General CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- run: sudo apt-get update | |
- run: sudo sh bin/install.sh | |
- run: . venv/bin/activate && make lint | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- run: sudo apt-get update | |
- run: sudo make install | |
- run: sudo make install-extra | |
- run: | | |
sudo apt-get -y install postgresql postgresql-contrib | |
sudo systemctl start postgresql | |
sudo -u postgres psql -c "CREATE DATABASE sner_test" | |
sudo -u postgres psql -c "CREATE USER ${USER}" | |
mkdir -p /tmp/sner_test_var | |
- run: . venv/bin/activate && make coverage | |
- run: . venv/bin/activate && make test-extra |