Merge pull request #7 from dylanbowman314/main #34
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, lint, and build library | |
| on: [push, pull_request] | |
| jobs: | |
| test-library: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install Poetry | |
| run: pipx install poetry --python $(which python) | |
| - name: Install project | |
| run: poetry install | |
| - name: Test with tox | |
| run: poetry run tox | |
| test-deps: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install Poetry | |
| run: pipx install poetry --python $(which python) | |
| - name: Check pyproject.toml | |
| run: poetry check | |
| - name: Check if lockfile is updated | |
| run: poetry lock --check |