Skip to content

fix: allow specific file is dir #60

fix: allow specific file is dir

fix: allow specific file is dir #60

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Smoke Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: poetry.lock
- name: Run examples
run: |
poetry install --all-extras
poetry run python3 examples/write.py
poetry run python3 examples/read.py
poetry run pytest
- name: Third Party Test
run: |
git clone https://github.com/axios/axios.git
poetry run python3 examples/for_axios.py
env:
GH_TOKEN: ${{ github.token }}