Skip to content

Commit

Permalink
Reduce combinations count
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
1 parent 235c246 commit 2891f27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ name: Python Pipenv Test
on:
push:
branches:
- main # Replace with the name of your default branch if it's different
- main
pull_request:
branches:
- main # Replace with the name of your default branch if it's different
- main

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"] # Add other Python versions if needed
python-version: ["3.11"] # Add other Python versions if needed

steps:
- name: Checkout code
Expand Down
15 changes: 6 additions & 9 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

if sys.platform == "linux":
print("We are on linux!")
#if 1: #try:
#import requests
#raise Exception("Excepted to fail.")
#except:
exit(0)

if sys.platform == "darwin":
print("We are on Mac!")

if sys.platform == "nt":
print("We are on Windows, oh no...")
try:
import requests
raise Exception("Expected to fail.")
except ImportError:
print("Import failed as expected")

0 comments on commit 2891f27

Please sign in to comment.