Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
fordnox committed Dec 7, 2023
1 parent ee3d6c4 commit 97af577
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test

on:
push:
branches: [ "python" ]
pull_request:
branches: [ "python" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
# Update poetry to the latest version.
poetry self update
# Ensure dependencies are installed without relying on a lock file.
poetry update
poetry install
- name: Test with pytest
run: |
poetry run pytest -s

0 comments on commit 97af577

Please sign in to comment.