Merge pull request #43 from RudolfCardinal/outlook-msg-fixups #163
This file contains hidden or 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
| --- | |
| # yamllint disable rule:line-length | |
| name: Run tests | |
| # yamllint disable-line rule:truthy | |
| on: | |
| push: | |
| paths: | |
| - '**.py' | |
| - .github/scripts/change_apt_mirror.sh | |
| - .github/scripts/create_virtualenv.sh | |
| - .github/scripts/install_base_python_packages.sh | |
| - .github/scripts/install_test_python_packages.sh | |
| - .github/scripts/run_tests.sh | |
| - .github/workflows/run_tests.yml | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Change apt mirror | |
| run: ${GITHUB_WORKSPACE}/.github/scripts/change_apt_mirror.sh | |
| - name: Install prerequisites | |
| run: | | |
| set -euo pipefail | |
| sudo apt-get -y install libcairo2-dev pkg-config python3-dev | |
| - name: Create virtualenv | |
| run: ${GITHUB_WORKSPACE}/.github/scripts/create_virtualenv.sh | |
| - name: Install test Python packages | |
| run: ${GITHUB_WORKSPACE}/.github/scripts/install_test_python_packages.sh | |
| - name: Install base Python packages | |
| run: ${GITHUB_WORKSPACE}/.github/scripts/install_base_python_packages.sh | |
| - name: Run tests | |
| run: ${GITHUB_WORKSPACE}/.github/scripts/run_tests.sh |