turning off fail on warnings temporarily to get all EMOD docs set up … #18
Workflow file for this run
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
#Install staging nightly build of idmtools including emodpy | |
# run all tests | |
# trigger test with checkin commit contains "Run all test!" | |
name: "stage_all_tests" | |
on: [push, pull_request] | |
jobs: | |
run-all-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: [3.9, 3.8, 3.7, 3.6] | |
env: | |
bamboo_user: ${{ secrets.PYPI_STAGING_USERNAME }} | |
bamboo_password: ${{ secrets.PYPI_STAGING_PASSWORD }} | |
if: "contains(github.event.head_commit.message, 'run-all-tests')" | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: ${{ matrix.os }} Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install py-make flake8 black | |
- name: Install dataclass | |
if: ${{ matrix.python-version }} == 3.6 | |
run: | | |
pip install dataclasses | |
- name: install idmtools[idm] and idmtools-test and emodpy from staging jfrog | |
run: | | |
pip install idmtools[idm] --index-url=https://${{ env.bamboo_user }}:${{ env.bamboo_password }}@packages.idmod.org/api/pypi/pypi-staging/simple --verbose | |
pip install idmtools-test --index-url=https://${{ env.bamboo_user }}:${{ env.bamboo_password }}@packages.idmod.org/api/pypi/pypi-staging/simple --verbose | |
- name: login to comps2 | |
run: | | |
python .dev_scripts/create_auth_token_args.py --username ${{ secrets.COMPS_USER }} --password ${{ secrets.COMPS_PASSWORD }} | |
env: | |
COMPS_USER: ${{ secrets.COMPS_USER }} | |
COMPS_PASSWORD: ${{ secrets.COMPS_PASSWORD }} | |
- name: run tests | |
run: | | |
cd tests | |
py.test --durations=3 -v --junitxml=test_results.xml | |
- name: Upload emodpy test results | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: emodpy_test_results | |
path: tests/test_results.xml |