update python version #357
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 rm /usr/share/keyrings/postgresql-archive-keyring.gpg | |
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 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" | sudo tee /etc/apt/sources.list.d/pgdg.gpg > /dev/null | |
gpg --no-default-keyring --keyring /usr/share/keyrings/postgresql-archive-keyring.gpg --import /usr/share/keyrings/postgresql-archive-keyring.gpg | |
sudo apt-get update | |
sudo 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 }} |