update python version #353
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: Run tests | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
bot: ['base', 'hh'] | |
lang: ['eng'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.7.7 | |
- name: Install dependencies | |
run: | | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O /usr/share/keyrings/postgresql-archive-keyring.gpg https://www.postgresql.org/media/keys/ACCC4CF8.asc | |
echo "signed-by=/usr/share/keyrings/postgresql-archive-keyring.gpg" > /etc/apt/sources.list.d/pgdg.gpg | |
apt-get update | |
apt-get -y install postgresql-14 | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
pip install -r requirements-actions.txt | |
- name: Test | |
run: | | |
./test.sh ${{ matrix.bot }} ${{ matrix.lang }} |