This repository was archived by the owner on May 26, 2026. It is now read-only.
Update README to indicate template is outdated #29
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: Build and Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| code-quality: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Linting | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 | |
| flake8 examplepackage | |
| docs-quality: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Docs | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pydocstyle | |
| pydocstyle examplepackage | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest] | |
| python-version: [3.7, 3.8] | |
| name: Python ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install in Development mode | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.dev.txt | |
| pip install -e . | |
| - name: Run tests | |
| run: pytest |