The Mighty Nein #196
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 | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| working-directory: sc_network_timezones | |
| shell: bash | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - | |
| name: Install Poetry | |
| uses: snok/[email protected] | |
| with: | |
| version: 1.2.0 | |
| virtualenvs-path: sc_network_timezones/.venv | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| installer-parallel: false | |
| - | |
| name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| cache: "poetry" | |
| cache-dependency-path: sc_network_timezones/pyproject.toml | |
| check-latest: true | |
| - | |
| name: Lint | |
| run: | | |
| pip install poethepoet | |
| poetry install --no-root | |
| poe poetry_update | |
| poe lint |