Skip to content

Fix bugs of getting free port from remote SSH server. #23

Fix bugs of getting free port from remote SSH server.

Fix bugs of getting free port from remote SSH server. #23

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip install poetry==1.7.0
- name: Install dependencies
run: |
poetry install
- name: Run linting
run: |
poetry run black src/
- name: Run tests
run: |
poetry run pytest
- name: Run type checking
run: |
poetry run mypy src/
package:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install Poetry
run: |
pip install poetry==1.7.0
- name: Install dependencies
run: |
poetry install
- name: Build package
run: |
poetry build
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: surena-package
path: dist/*