diff --git a/.github/workflows/Check.yml b/.github/workflows/Check.yml index 2f6dcc4..0fa4ffe 100644 --- a/.github/workflows/Check.yml +++ b/.github/workflows/Check.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v2 - run: sudo apt install ccache python3.11-dev python3.11-venv - run: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 20 - - run: curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/poetry sudo python3.11 - - - run: export PATH=/usr/local/poetry/bin:$PATH + - run: curl -sSL https://install.python-poetry.org | python3.11 - + - run: echo "~/.local/share/pypoetry/bin" >> $GITHUB_PATH - run: poetry install - run: poetry run pytest -s --timeout 3 diff --git a/.github/workflows/CheckInstallation.yml b/.github/workflows/CheckInstallation.yml index 87c22bc..fc59f5b 100644 --- a/.github/workflows/CheckInstallation.yml +++ b/.github/workflows/CheckInstallation.yml @@ -7,8 +7,8 @@ jobs: - uses: actions/checkout@v2 - run: sudo apt install ccache python3.11-dev python3.11-venv - run: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 20 - - run: curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/poetry sudo python3.11 - - - run: export PATH=/usr/local/poetry/bin:$PATH + - run: curl -sSL https://install.python-poetry.org | python3.11 - + - run: echo "~/.local/share/pypoetry/bin" >> $GITHUB_PATH - run: poetry install - run: >- echo ' @@ -17,4 +17,4 @@ jobs: error banner panic - ' | python3 examples/demo.py + ' | poetry run python3 examples/demo.py