Skip to content

add tests to actions #5

add tests to actions

add tests to actions #5

name: Python package
on: [push]
jobs:
build and test:

Check failure on line 6 in .github/workflows/github-actions-demo.yml

View workflow run for this annotation

GitHub Actions / Python package

Invalid workflow file

The workflow is not valid. .github/workflows/github-actions-demo.yml (Line: 6, Col: 3): The identifier 'build and test' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with=dev
- name: Testing
run: pytest