diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..c53ef22 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,26 @@ +name: Python package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Run tests + run: | + bash scripts/test.sh diff --git a/strava_calendar/test_data.py b/strava_calendar/test_data.py index 160ebaf..2e6e678 100644 --- a/strava_calendar/test_data.py +++ b/strava_calendar/test_data.py @@ -1 +1,4 @@ from strava_calendar.data import * # noqa:F403 + +def test_placeholder(): + pass diff --git a/strava_calendar/test_plot.py b/strava_calendar/test_plot.py index 689f018..c4fb1a3 100644 --- a/strava_calendar/test_plot.py +++ b/strava_calendar/test_plot.py @@ -1 +1,4 @@ from strava_calendar.plot import * # noqa:F403 + +def test_placeholder(): + pass diff --git a/strava_calendar/test_strava_calendar.py b/strava_calendar/test_strava_calendar.py index 754101b..8fd9aaa 100644 --- a/strava_calendar/test_strava_calendar.py +++ b/strava_calendar/test_strava_calendar.py @@ -1 +1,4 @@ from strava_calendar.strava_calendar import * # noqa:F403 + +def test_placeholder(): + pass