Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Test in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Sep 26, 2023
1 parent 9b80ca2 commit 99b26f5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
push:

jobs:
build:

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

steps:
- uses: actions/checkout@v3
- 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 .
python -m pip install -r testing_requirements.txt
- name: Lint
run: |
# stop the build if there are Python syntax errors or undefined names
black . --check
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
ruff .
- name: Test with pytest
run: |
python run_tests.py

0 comments on commit 99b26f5

Please sign in to comment.