Skip to content

Update test.yml

Update test.yml #6

Workflow file for this run

name: Run Unit Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Generate lockfile
working-directory: ./Gateware
run: pdm lock --group :all ${{ matrix.dep-versions == 'minimal' && '--strategy direct_minimal_versions' || '' }}
- name: Install dependencies
working-directory: ./Gateware
run: pdm sync
- name: Run tests
run: |
pdm run test