Add Surena's command get-docker-host and is-docker-host. #7
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: 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/* |