Bump tornado from 6.0.2 to 6.3.3 in /archive_api_server #185
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: Basic pipeline | |
on: [push, pull_request] | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
env: | |
archive-name: ${{ secrets.DEMO_ARCHIVE_NAME }} | |
steps: | |
# Static analysis and unittests | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint==2.4.4 pytest mock testarchiver | |
pip install setuptools wheel | |
pip install robotframework~=4.0 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Lint with pylint | |
run: | | |
pylint test_archiver/ | |
- name: Run unittests | |
run: | | |
PYTHONPATH=. pytest test_archiver/tests/ --junit-xml=output.xml | |
- name: Archive unittest results | |
if: ${{ always() && (env.archive-name != 0) }} | |
run: >- | |
testarchiver | |
output.xml | |
--database ${{ secrets.DEMO_ARCHIVE_NAME }} | |
--host ${{ secrets.ARCHIVE_HOST }} | |
--user ${{ secrets.ARCHIVE_USER }} | |
--pw ${{ secrets.ARCHIVE_PW }} | |
--dbengine postgres | |
--format pytest-junit | |
--repository TestArchiver | |
--team TestArchiver | |
--series archiver_unittests | |
--series ${GITHUB_REF##*/} | |
# Test packaging | |
- name: Test building package | |
run: | | |
python setup.py sdist bdist_wheel | |
- name: Test installing package locally | |
run: | | |
python -m pip install dist/testarchiver-*.tar.gz | |
testarchiver --version | |
testarchive_schematool --version | |
# Test parsing different test fixtures | |
- name: Run robot fixture with listener | |
run: >- | |
robot | |
--listener test_archiver.ArchiverRobotListener:fixture.db | |
--pythonpath robot_tests/libraries:robot_tests/resources:. | |
--outputdir robot_tests/run1 | |
--metadata team:"TestArchiver" | |
--metadata series:"Robot listener" | |
--metadata series2:Fixture#1 | |
--exclude sleep | |
--nostatusrc | |
robot_tests/tests | |
- name: Run robot fixture second time | |
run: >- | |
robot | |
--pythonpath robot_tests/libraries:robot_tests/resources:. | |
--outputdir robot_tests/run2 | |
--nostatusrc | |
robot_tests/tests | |
- name: Parse the output from second robot fixture run | |
run: >- | |
testarchiver | |
robot_tests/run2/output.xml | |
--database fixture.db | |
--repository TestArchiver | |
--team TestArchiver | |
--series Parser | |
--series Fixture#2 | |
- name: Run fixture python unittests | |
run: | | |
pytest pytest/fixture_tests/ --junit-xml=pytest_output.xml || true | |
- name: Parse the output from python unittests fixture run | |
run: >- | |
testarchiver | |
pytest_output.xml | |
--format pytest-junit | |
--database fixture.db | |
--repository pytest | |
--team TestArchiver | |
--series Pytest |