add encoding test #105
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: Tests | |
# run tests whenever main gets a commit or PR | |
on: | |
push: | |
branches: | |
- main | |
- windows_ci | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
PYTHONIOENCODING: "utf-8" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] # ubuntu is the only distro available 🙃 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Set up go # for testing + installing siegfried-based PRONOM detection | |
uses: actions/setup-go@v5 | |
- name: Install mdto.py and test dependencies | |
run: | | |
go install github.com/richardlehane/siegfried/cmd/sf@latest | |
sf -update | |
pip install pytest # pytest ≠ project dep, so add it here | |
pip install . | |
- name: Run tests | |
run: pytest |