Create package #1
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
name: Run Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [3.9, "3.10", 3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install pytest | |
- name: Run tests | |
run: pytest tests/ | |
- name: Upload TAXSIM executables | |
uses: actions/upload-artifact@v2 | |
with: | |
name: taxsim-executables | |
path: resources/taxsim35/taxsim35-*.exe | |
- name: Download TAXSIM executables | |
uses: actions/download-artifact@v2 | |
with: | |
name: taxsim-executables | |
path: resources/taxsim35/ | |
- name: Make TAXSIM executables executable (Unix) | |
if: runner.os != 'Windows' | |
run: chmod +x resources/taxsim35/taxsim35-*.exe | |
- name: Run E2E tests | |
run: pytest tests/test_e2e.py |