Skip to content

Commit

Permalink
Create python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LcfherShell authored Aug 26, 2024
1 parent 0655395 commit bf5f430
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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: SuperNano

on:
push:
branches: [ "V2.1.0" ]
pull_request:
branches: [ "V2.1.0" ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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
pip install pyperclip psutil pkg_resources pkgutil logging httpx
- name: Lint with flake8
run: |
pip install flake8
flake8 .
- name: Run tests
run: |
# Use pytest or other testing tools
pip install pytest
pytest

0 comments on commit bf5f430

Please sign in to comment.