|
| 1 | +name: Station C prot1 tests |
| 2 | +# This workflow is triggered on pushes and PRs to the repository. |
| 3 | +# It runs the pipeline with several tests to check if everything works |
| 4 | +on: [push, pull_request] |
| 5 | +jobs: |
| 6 | + test: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + strategy: |
| 9 | + matrix: |
| 10 | + parameters: [ "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb1_pars.json", |
| 11 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb2_pars.json", |
| 12 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb3_pars.json", |
| 13 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb4_pars.json", |
| 14 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb5_pars.json", |
| 15 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb6_pars.json", |
| 16 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb7_pars.json", |
| 17 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb8_pars.json", |
| 18 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb9_pars.json", |
| 19 | + "${GITHUB_WORKSPACE}/tests/par_tests/stationC_prot1_comb10_pars.json" |
| 20 | + ] |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v2 |
| 23 | + - name: Set up Python ${{ matrix.python-version }} |
| 24 | + uses: actions/setup-python@v1 |
| 25 | + with: |
| 26 | + python-version: 3.7 |
| 27 | + - name: Install Dependencies |
| 28 | + run: | |
| 29 | + python -m pip install --upgrade pip |
| 30 | + pip install -r ${GITHUB_WORKSPACE}/requirements.txt |
| 31 | + mkdir ~/.opentrons |
| 32 | + cp ${GITHUB_WORKSPACE}/custom_defaults/* ~/.opentrons |
| 33 | + - name: Create test script |
| 34 | + run: | |
| 35 | + echo "testing" |
| 36 | + python ${GITHUB_WORKSPACE}/tests/run_tests.py \ |
| 37 | + -j ${{ matrix.parameters }} \ |
| 38 | + -t ${GITHUB_WORKSPACE}/protocols/S3/stationC_protocol1_pcr_S3.ot2.apiv2.py \ |
| 39 | + -o /tmp/tmp_test.py |
| 40 | + - name: Simulate script |
| 41 | + run: | |
| 42 | + #opentrons_simulate -L ${GITHUB_WORKSPACE}/labware /tmp/tmp_test.py |
0 commit comments