Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/github-actions-basic.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Python package

on: [push]

branches:
main
actions
#nagwa's file
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10","3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
29 changes: 29 additions & 0 deletions Chapter02/.github/workflows/github-actions-basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9,3.10]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt;fi
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-sources --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: pytest
working-directory: Chapter02

2 changes: 1 addition & 1 deletion Chapter02/testing/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from numpy.random import RandomState, SeedSequence

rs = RandomState(MT19937(SeedSequence(123456789)))

#edit

# Define simulate ride data function
def simulate_ride_data():
Expand Down