Avoid most of the flickering in some terminals #506
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
- name: Set up SSH | |
run: | | |
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" | |
cp ~/.ssh/id_ed25519.pub ~/.ssh/authorized_keys | |
chmod og-rw ~ | |
ssh -o StrictHostKeyChecking=no localhost id | |
mkdir -p ~/.ssh/controlmasters | |
echo -e "Host localhost\n ControlPath ~/.ssh/controlmasters/%C\n ControlPersist 1h\n ControlMaster auto" > ~/.ssh/config | |
- name: Test with pytest | |
run: | | |
pytest tests |