diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 523699f..9cffa86 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -2,45 +2,36 @@ name: Tests on: pull-request: branches: ["main", "dev"] + workflow_dispatch: + jobs: - lint: + tests: runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest, windows-latest ] python-version: [ '3.12' ] + steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - name: Checkout + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: pip + - name: Install Dependencies working-directory: . run: | + python -m pip install --upgrade pip pip install -e .[dev] - - name: Run flake8 - working-directory: . + + - name: Run linting run: | flake8 ./src/ - test: - needs: lint - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ ubuntu-latest, windows-latest ] - python-version: [ '3.12' ] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - working-directory: . - run: | - pip install -e .[dev] - - name: Run flake8 - working-directory: . + + - name: Run tests run: | pytest