Skip to content

update gha versions #238

update gha versions

update gha versions #238

Workflow file for this run

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 }}