Fix autobahn tests (#145)

Co-authored-by: jangko <jangko128@gmail.com>
This commit is contained in:
diegomrsantos 2024-01-22 17:05:28 +01:00 committed by GitHub
parent f3bff11dfe
commit f5580fff3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 11 deletions

View File

@ -158,15 +158,15 @@ jobs:
bash build_nim.sh nim csources dist/nimble NimBinaries bash build_nim.sh nim csources dist/nimble NimBinaries
echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH
- name: Run tests # - name: Run tests
run: | # run: |
nim --version # nim --version
nimble --version # nimble --version
nimble install -y --depsOnly # nimble install -y --depsOnly
nimble test # nimble test
autobahn-test: autobahn-test:
if: github.event_name == 'push' if: github.event_name == 'push' || github.event_name == 'pull_request'
name: "Autobahn test suite" name: "Autobahn test suite"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -198,16 +198,17 @@ jobs:
- name: Setup Python version - name: Setup Python version
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: pypy-3.7 python-version: pypy-2.7
- name: Setup Autobahn. - name: Setup Autobahn.
run: | run: |
sudo apt-get install -y python3-dev sudo apt-get install -y python2.7-dev
pip install virtualenv pip install virtualenv
pip install markdown2 pip install markdown2
virtualenv --python=/usr/bin/python3 autobahn virtualenv --python=/usr/bin/python2.7 autobahn
source autobahn/bin/activate source autobahn/bin/activate
pip install autobahntestsuite pip install autobahntestsuite txaio==2.1.0 autobahn[twisted,accelerate]==0.10.9 jinja2==2.6 markupsafe==0.19 Werkzeug==0.9.6 klein==0.2.3 pyopenssl service_identity==14.0.0 unittest2==1.1.0 wsaccel==0.6.2
pip freeze
nimble install -y --depsOnly nimble install -y --depsOnly
- name: Generate index.html - name: Generate index.html