Skip to content

Bump black from 22.6.0 to 24.3.0 #103

Bump black from 22.6.0 to 24.3.0

Bump black from 22.6.0 to 24.3.0 #103

Workflow file for this run

---
name: coveralls
"on":
push: {}
jobs:
cov-submit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Reload Cache / pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
# NOTE: container lacks OS dist for testresources/launchpadlib
- name: Install requirements
run: |
pip install coveralls
make _deps
pip install -r db/requirements.txt
- name: Start database
run: |
sudo service postgresql start
sudo -u postgres psql -c 'CREATE DATABASE nt'
sudo -u postgres psql -c 'CREATE ROLE runner'
sudo -u postgres psql -c "ALTER USER runner PASSWORD 'password'"
sudo -u postgres psql -c 'ALTER USER runner WITH LOGIN SUPERUSER'
sudo -u postgres psql -c 'ALTER DATABASE nt OWNER TO runner'
psql -d nt -c 'ALTER DATABASE nt SET search_path TO nt'
psql -l
# This package uses relative imports, so can be called from outside
python -m db.sql rebuild
# Select versions (not a pass/fail test, but still viewable in logs)
psql -d nt -c 'SELECT * FROM version'
- name: Run Tests
run: make _test
- name: Submit coverage report / coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github