Skip to content

Commit

Permalink
Fist commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavelka, Roman (ADV D EU CZ PDS1 CIO 1) committed Aug 28, 2023
0 parents commit f65127b
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
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
12 changes: 12 additions & 0 deletions Pipfile
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"
8 changes: 8 additions & 0 deletions test.py
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:

0 comments on commit f65127b

Please sign in to comment.