github PR action test on installed version
@@ -18,11 +18,25 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- - name: Update pip
+ - name: Python Version
+ run: python --version
+ - name: Update Pip
run: python -m pip install --upgrade pip
+ - name: Install Build
+ run: pip install build
+ - name: Build packages
+ run: python -m build
+ - name: Install rsatoolbox
+ run: pip install dist/rsatoolbox-*.tar.gz
- name: Install dependencies
- run: |
- pip install .
- pip install -r tests/requirements.txt
+ run: pip install -r requirements.txt
+ - name: Install test dependencies
+ run: pip install -r tests/requirements.txt
- name: Unit tests
- run: pytest tests
+ run: pytest
+ - name: Store artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: rsatoolbox-sdist
+ path: dist/rsatoolbox-*.tar.gz
+ retention-days: 1
