Skip to content

Commit 13c3f90

Browse files
Merge pull request #2 from da-off13/main
Q
2 parents 2d989b2 + 8d364e7 commit 13c3f90

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python Package using Conda
2+
3+
on: [push]
4+
5+
jobs:
6+
build-linux:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 5
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: '3.10'
17+
- name: Add conda to system path
18+
run: |
19+
# $CONDA is an environment variable pointing to the root of the miniconda directory
20+
echo $CONDA/bin >> $GITHUB_PATH
21+
- name: Install dependencies
22+
run: |
23+
conda env update --file environment.yml --name base
24+
- name: Lint with flake8
25+
run: |
26+
conda install flake8
27+
# stop the build if there are Python syntax errors or undefined names
28+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
- name: Test with pytest
32+
run: |
33+
conda install pytest
34+
pytest

1-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ------------------------------------------------------
44
# Install Script for MyChatGpt
5-
# ------------------------------------------------------
5+
# ------------------------------------------------------
66

77
pip install openai
88
pip install pyperclip

mychatgpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# __ __ ____ _ _ ____ _
1+
# __ __ ____ _ _ ____ _
22
# | \/ |_ _ / ___| |__ __ _| |_ / ___|_ __ | |_
33
# | |\/| | | | | | | '_ \ / _` | __| | _| '_ \| __|
44
# | | | | |_| | |___| | | | (_| | |_| |_| | |_) | |_

0 commit comments

Comments
 (0)