update gha versions #239
Workflow file for this run
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, workflow_call] | |
| env: | |
| PACKAGE: radicli | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.8', '3.9', '3.10'] | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install | |
| run: pip install -r requirements.txt | |
| - name: Run pyright | |
| run: python -m pyright ${{ env.PACKAGE }} | |
| - name: Build sdist | |
| run: python setup.py sdist | |
| - name: Remove package directory | |
| run: rm -rf ${{ env.PACKAGE }} | |
| shell: bash | |
| - name: Install from sdist | |
| run: pip install dist/*.tar.gz | |
| shell: bash | |
| - name: Run pytest | |
| run: python -m pytest --pyargs ${{ env.PACKAGE }} |