Merge pull request #453 from anarkiwi/renovate/pypa-gh-action-pypi-pu… #1960
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: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, '3.10', 3.11, 3.12] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: test | |
run: | | |
sudo apt-get update && sudo apt-get install python3-dev && \ | |
sudo pip3 install -U -r test-requirements.txt -r requirements.txt && \ | |
PYFILES=$(find . -type f -name \*py|sort) && \ | |
PYTHONPATH=. pylint -E ${PYFILES} && pytype -P. -k . && \ | |
sudo pip3 install . && \ | |
coverage run --source=desidulate -m unittest discover tests && \ | |
coverage report -m | |
- name: e2e_test | |
run: | | |
if [ ./tests/e2e.sh http://www.hvsc.c64.org/download/C64Music/MUSICIANS/H/Hubbard_Rob/Commando.sid test1 test2 ] ; then chmod a-w test2 && rsync -ic test1/* test2/ ; else exit 0 ; fi |