CI #1366
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| tox: | |
| name: tox | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ macos-latest, ubuntu-latest ] | |
| python-version: [ '3.10', '3.12' ] | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: pip install --upgrade pip setuptools wheel tox | |
| - run: pip install . # required for e2e tests | |
| - run: make lint | |
| - run: tox | |
| # Although this won't execute on macOS, the Docker build should be the same | |
| # across all OS. In future we may wish to ensure this runs on macOS, but | |
| # for the time being ensuring the build completes on any system should be | |
| # enough to confirm the Docker image is working. | |
| - if: matrix.os != 'macos-latest' | |
| run: docker build . --file Dockerfile -t grove |