Skip to content

Commit

Permalink
Create require.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodorian1337 authored Nov 12, 2024
1 parent 0f37397 commit 03a3643
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/require.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Python package

on:
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install package
run: |
python -m pip install -e ".[test]"
- name: Test with pytest
run: |
pytest

0 comments on commit 03a3643

Please sign in to comment.