Revert "ci: target latest python" #83
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: Tests | |
# run tests whenever main gets a commit or PR | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest # this is the only distro available 🙃 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install mdto.py and dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest # pytest ≠ project dep, so add it here | |
pip install . | |
- name: Run tests | |
run: pytest |