Mercurial > p > roundup > code
comparison .github/workflows/ci-test.yml @ 6864:7e907d97deb6
redis, gpg, more myql debugging
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 31 Aug 2022 23:55:17 -0400 |
| parents | 766533934008 |
| children | e69b4bfaccd3 |
comparison
equal
deleted
inserted
replaced
| 6863:766533934008 | 6864:7e907d97deb6 |
|---|---|
| 26 #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ] | 26 #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ] |
| 27 # use for multiple os or ubuntu versions | 27 # use for multiple os or ubuntu versions |
| 28 # os: [ubuntu-latest, macos-latest, windows-latest] | 28 # os: [ubuntu-latest, macos-latest, windows-latest] |
| 29 | 29 |
| 30 env: | 30 env: |
| 31 # get colorized pytest output even without a controlling tty | |
| 32 PYTEST_ADDOPTS: "--color=yes" | |
| 31 # OS: ${{ matrix.os }} | 33 # OS: ${{ matrix.os }} |
| 32 PYTHON_VERSION: ${{ matrix.python-version }} | 34 PYTHON_VERSION: ${{ matrix.python-version }} |
| 33 | 35 |
| 34 steps: | 36 steps: |
| 35 # Checkout the latest code from the repo | 37 # Checkout the latest code from the repo |
| 60 continue-on-error: true | 62 continue-on-error: true |
| 61 run: | | 63 run: | |
| 62 set -xv | 64 set -xv |
| 63 sudo apt-get install mysql-server mysql-client | 65 sudo apt-get install mysql-server mysql-client |
| 64 # set up mysql database | 66 # set up mysql database |
| 65 sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf | 67 sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/mysql.conf.d/mysqld.cnf |
| 66 tail -n +0 /etc/mysql/my.cnf | 68 tail -n +0 /etc/mysql/my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf |
| 67 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ | 69 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ |
| 68 sudo service mysql restart | 70 sudo service mysql restart |
| 69 sudo mysql -u root --skip-password -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | 71 sudo mysql -u root --skip-password -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' |
| 72 | |
| 73 - name: install redis | |
| 74 run: sudo apt-get install redis | |
| 70 | 75 |
| 71 - name: Update pip | 76 - name: Update pip |
| 72 run: python -m pip install --upgrade pip | 77 run: python -m pip install --upgrade pip |
| 73 | 78 |
| 74 - name: Install db libraries | 79 - name: Install db libraries |
| 75 run: pip install psycopg2 mysqlclient | 80 run: pip install psycopg2 mysqlclient |
| 76 | 81 |
| 77 - name: Install auxilary packages | 82 - name: Install auxilary packages |
| 78 run: | | 83 run: | |
| 79 sudo apt-get install swig gpgsm libgpgme-dev | 84 sudo apt-get install swig gpgsm libgpgme-dev |
| 80 pip install beautifulsoup4 brotli jinja2 markdown2 \ | 85 pip install beautifulsoup4 brotli gpg jinja2 markdown2 mistune \ |
| 81 pyjwt pytz whoosh | 86 pyjwt pytz whoosh |
| 82 # pip install gpg | |
| 83 | 87 |
| 84 - name: Install aux packages that need versions differences | 88 - name: Install aux packages that need versions differences |
| 85 # if zstd fails install, keep going with test, don't abort | 89 # if zstd fails install, keep going with test, don't abort |
| 86 run: | | 90 run: | |
| 87 set -xv | 91 set -xv |
