Merge dev into main #1088
This file contains hidden or 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: Test Code on Ubuntu | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ dev, main ] | |
| jobs: | |
| test_code: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | sudo bash - | |
| icon pt -ic | |
| ~/.local/bin/poetry lock --no-update | |
| ~/.local/bin/poetry env use python3 | |
| ~/.local/bin/poetry install -E all | |
| - name: Test with pytest | |
| run: | | |
| ~/.local/bin/poetry run pytest |