Merge pull request #46 from copick/uermel/fix_link #107
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 | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test-extended: | |
name: ${{ matrix.platform }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.platform }} | |
env: | |
RUN_ALL: 1 | |
strategy: | |
matrix: | |
platform: [ | |
ubuntu-latest, | |
] | |
python-version: [ | |
"3.9", | |
"3.10", | |
"3.11", | |
"3.12", | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sshpass | |
python -m pip install --upgrade pip | |
pip install setuptools pytest pipx | |
pip install -e ".[test]" | |
pipx install hatch | |
pipx ensurepath | |
- name: Test with pytest | |
run: hatch run test_extended:test -vvv -p no:warnings tests | |
env: | |
PLATFORM: ${{ matrix.platform }} | |
- name: Coverage | |
uses: codecov/codecov-action@v1 | |
test-macos: | |
name: ${{ matrix.platform }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.platform }} | |
env: | |
RUN_ALL: 0 | |
strategy: | |
matrix: | |
platform: [ | |
macos-latest, | |
] | |
python-version: [ | |
"3.9", | |
"3.10", | |
"3.11", | |
"3.12", | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools pytest pipx | |
pip install -e ".[test]" | |
pipx install hatch | |
pipx ensurepath | |
- name: Test with pytest | |
run: hatch run test:test -vvv -p no:warnings tests | |
env: | |
PLATFORM: ${{ matrix.platform }} | |
- name: Coverage | |
uses: codecov/codecov-action@v1 | |
test-windows: | |
name: ${{ matrix.platform }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.platform }} | |
env: | |
RUN_ALL: 0 | |
strategy: | |
matrix: | |
platform: [ | |
windows-latest, | |
] | |
python-version: [ | |
"3.9", | |
"3.10", | |
"3.11", | |
"3.12", | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python.exe -m pip install --upgrade pip | |
python.exe -m pip install setuptools pytest pipx | |
python.exe -m pip install -e ".[test]" | |
python.exe -m pipx install hatch | |
python.exe -m pipx ensurepath | |
- name: Test with pytest | |
run: hatch run test:test -vvv -p no:warnings tests | |
env: | |
PLATFORM: ${{ matrix.platform }} | |
- name: Coverage | |
uses: codecov/codecov-action@v1 |