tidy up yaml
@@ -20,12 +20,6 @@ jobs:
echo "::set-env name=PYTHONPATH::$HOME/.cache/site-packages"
- name: Checkout sources
uses: actions/checkout@v1
- # - name: Checkout synthpops
- # uses: actions/checkout@v2
- # with:
- # repository: ${{ env.GITHUB_OWNER }}/synthpops
- # token: ${{ secrets.GitHub_PAT }}
- # path: ./synthpops
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
@@ -35,18 +29,13 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cache/ # This path is specific to Ubuntu
- # Look to see if there is a cache hit for the corresponding requirements file
- key: packages-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
+ key: packages-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }} # Look to see if there is a cache hit for the corresponding requirements file
restore-keys: |
- packages-${{ runner.os }}-${{ matrix.python-version }}-
- # Pip install first will make setup.py much faster and the cache will make pip install fast
+ packages-${{ runner.os }}-${{ matrix.python-version }}- # Pip install first will make setup.py much faster and the cache will make pip install fast
- name: Install Covasim
run: |
python setup.py develop --install-dir ~/.cache/site-packages
pip install pytest
- # - name: Install synthpops
- # working-directory: ./synthpops
- # run: python setup.py develop
- name: Run tests
working-directory: ./tests
run: pytest test*.py --durations=0 # Run actual tests
@@ -59,9 +48,3 @@ jobs:
- name: Run cruise ship
working-directory: ./covasim/cruise_ship
run: python test*.py
\ No newline at end of file
- # - name: Upload test results
- # uses: actions/upload-artifact@v1
- # if: failure()
- # with:
- # name: test_results
- # path: tests/test-results.xml
