Skip to content

Commit

Permalink
Update depends
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Oct 6, 2021
1 parent 506dd3c commit 3315121
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -4,20 +4,20 @@ jobs:
build:
env:
REPOLOGY_CONFIG: repology-test.conf.default
POSTGRESQL: 13
POSTGRESQL: 14
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: "3.10.0"
- name: Install dependencies
run: |
curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main 14" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install postgresql-server-dev-$POSTGRESQL tidy
sudo apt-get install postgresql-$POSTGRESQL postgresql-server-dev-$POSTGRESQL tidy
- name: Install libversion
run: |
mkdir _libversion
Expand All @@ -42,6 +42,7 @@ jobs:
- name: Prepare database
run: |
sudo sed -i -e 's|peer|trust|' /etc/postgresql/$POSTGRESQL/main/pg_hba.conf
sudo sed -i -e 's|5433|5432|' /etc/postgresql/$POSTGRESQL/main/postgresql.conf
sudo pg_ctlcluster $POSTGRESQL main restart
sudo -u postgres psql -c "CREATE DATABASE repology_test;"
sudo -u postgres psql -c "CREATE USER repology_test WITH PASSWORD 'repology_test'"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,12 +13,12 @@ which updates the repository information.

## Dependencies

- [Python](https://www.python.org/) 3.9+
- [Python](https://www.python.org/) 3.10+
- Python module [flask](http://flask.pocoo.org/)
- Python module [libversion](https://pypi.python.org/pypi/libversion) (also requires [libversion](https://github.com/repology/libversion) C library)
- Python module [pillow](https://pypi.python.org/pypi/Pillow)
- Python module [psycopg2](http://initd.org/psycopg/)
- [PostgreSQL](https://www.postgresql.org/) 13.0+
- [PostgreSQL](https://www.postgresql.org/) 14.0+
- PostgreSQL extension [libversion](https://github.com/repology/postgresql-libversion)

### For development
Expand Down

0 comments on commit 3315121

Please sign in to comment.