Skip to content

Commit

Permalink
update pytest github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrychu committed Jan 23, 2024
1 parent abb5a9b commit a351f62
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
name: Pytest
name: Run Tests

on: [push]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: [3.9, 3.10, 3.11, 3.12]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run tests with Pytest
pip install -r requirements.txt
- name: Run pytest
run: |
pytest tests -vv
python -m pytest tests -vv

0 comments on commit a351f62

Please sign in to comment.