Mercurial > p > roundup > code
diff .github/workflows/ci-test.yml @ 6878:81d811b8d45f
set full python version string; other cleanups
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 01 Sep 2022 11:14:08 -0400 |
| parents | ac2b8a8f5727 |
| children | 5ba79dd2f31c |
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml Thu Sep 01 10:52:42 2022 -0400 +++ b/.github/workflows/ci-test.yml Thu Sep 01 11:14:08 2022 -0400 @@ -20,13 +20,13 @@ strategy: fail-fast: false - max-parallel: 3 + max-parallel: 4 matrix: # Run in all these versions of Python - python-version: [ "2.7", "3.10", "3.11.0-rc.1", "3.12" ] - #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ] - # use for multiple os or ubuntu versions - # os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6", "3.11.0-rc.1" ] + # use for multiple os or ubuntu versions + #os: [ubuntu-latest, macos-latest, windows-latest] + # if the ones above fail. fail the build experimental: [false] include: # example: if 3.12 fails the jobs still succeeds @@ -42,11 +42,14 @@ steps: # Checkout the latest code from the repo - name: Checkout source + # example directives: + # disable step # if: {{ false }} + # continue running if step fails # continue-on-error: true uses: actions/checkout@v3 - # Setup which version of Python to use + # Setup version of Python to use - name: Set Up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: @@ -59,16 +62,19 @@ # Install the databases - name: Install mysql/mariadb run: | - set -xv + #set -xv + # mysql is pre-installed and active but this is the install command + # sudo apt-get install mysql-server mysql-client # set up mysql database sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^#* *max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/mysql.conf.d/mysqld.cnf; sleep 3 - tail -n +0 /etc/mysql/my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf - grep max_allowed /etc/mysql/mysql.conf.d/mysqld.cnf - ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ - sleep 5 - sudo service mysql restart; sleep 30 - ps -ef | grep mysqld - sudo netstat -anp | grep mysqld + #tail -n +0 /etc/mysql/my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf + #grep max_allowed /etc/mysql/mysql.conf.d/mysqld.cnf + #ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ + #sleep 5 + sudo service mysql restart + #sleep 10 + #ps -ef | grep mysqld + #sudo netstat -anp | grep mysqld sudo mysql -u root -proot -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' - name: Install postgres @@ -77,7 +83,7 @@ # Disable fsync for speed, don't care about data durability # when testing sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf - sudo service postgresql restart; sleep 30 + sudo service postgresql restart; sleep 10 # set up postgresql database sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres @@ -89,7 +95,7 @@ - name: Update pip run: python -m pip install --upgrade pip - - name: Install db libraries + - name: Install python db libraries run: pip install psycopg2 mysqlclient - name: Install auxiliary packages @@ -110,7 +116,6 @@ pip install Markdown; fi - name: Install xapian - continue-on-error: true run: | sudo apt-get install libxapian-dev # Sphinx required to build the xapian python bindings. Use 1.8.5 on
