-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavelka, Roman (ADV D EU CZ PDS1 CIO 1)
committed
Aug 28, 2023
0 parents
commit f65127b
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Python Pipenv Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Replace with the name of your default branch if it's different | ||
pull_request: | ||
branches: | ||
- main # Replace with the name of your default branch if it's different | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [3.8, 3.9] # Add other Python versions if needed | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
pipenv install --dev # Add the --dev flag if you have development dependencies in your Pipfile | ||
- name: Run test.py script | ||
run: | | ||
pipenv run python test.py # Replace 'test.py' with the path to your test script if different |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
requests = {version = "*", sys_platform = "!= 'linux'"} | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import sys | ||
|
||
if sys.platform == "linux": | ||
print("we are on linux") | ||
#if 1: #try: | ||
#import requests | ||
#raise Exception("Excepted to fail.") | ||
#except: |