Skip to content

Update project to use PDM and pyproject.toml #190

Update project to use PDM and pyproject.toml

Update project to use PDM and pyproject.toml #190

name: Basic pipeline
on: [push, pull_request]
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
# Static analysis and unittests
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PDM
run: pip install --upgrade pdm
- name: Install project
run: pdm install
- name: Lint with pylint
run: pdm lint
- name: Run unittests
run: pdm utest
- name: Test scripts
run: |
pdm run testarchiver --version
pdm run testarchive_schematool --version
- name: Build distribution
run: pdm build
# Test parsing different test fixtures
- name: Run and parse robot fixtures
run: pdm robot_fixture_populate
- name: Run and parse pytest fixtures
run: pdm pytest_fixture_populate