diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 886c1cb..c0b0303 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,29 +1,20 @@ -name: Test - -on: - push: - workflow_dispatch: - +name: Run tests +on: [push] jobs: - test: + build: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: [ '3.8', '3.9', '3.10', '3.11', ] + name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - if: hashFiles('pyproject.toml') - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - cache: pip - cache-dependency-path: '**/pyproject.toml' - - name: Install dependencies - if: hashFiles('pyproject.toml') - run: | - pip install -e '.[test]' - - name: Run tests - if: hashFiles('pyproject.toml') - run: | - pytest \ No newline at end of file + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: Install + run: pip install . + - name: Test + run: pytest \ No newline at end of file