Small black change #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: [main] | |
paths: [ 'egrader/**', 'tests/**', '.github/workflows/tests.yml', 'pyproject.toml' ] | |
push: | |
branches: [main] | |
paths: [ 'egrader/**', 'tests/**', '.github/workflows/tests.yml', 'pyproject.toml' ] | |
tags: '*' | |
jobs: | |
run-tests: | |
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ['3.10', '3.12'] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup latest Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install dependencies | |
run: | | |
pip install pip --upgrade | |
pip install .[dev] | |
- name: Test with pytest | |
run: pytest |