batch generation of random unique structures #94
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 | |
| # Controls when the action will run | |
| on: [push, pull_request] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{matrix.python-version}} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{matrix.python-version}} | |
| cache: 'pip' | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Install package with dev dependencies | |
| pip install -e ".[dev]" | |
| pip list | |
| - name: Run tests | |
| run: | | |
| pytest --cov-config=.coveragerc --cov=bsym --cov-report lcov | |
| - name: Coveralls GitHub Action | |
| uses: coverallsapp/github-action@v2.3.6 | |
| with: | |
| path-to-lcov: ./coverage.lcov | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel: true | |
| flag-name: python-${{ matrix.python-version }} | |
| - name: Static type checking | |
| run: | | |
| mypy bsym | |
| # This job finalizes the parallel coverage reports | |
| finish: | |
| needs: tests | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@v2.3.6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true |