Python
- A demo to show a simple task before we start learning about the YAML files from scratch
examples/workflows/python.yml
name: Python on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v2 - name: Install dependencies run: pip install -r requirements.txt - name: Check Python version run: python -V - name: Test with pytest run: pytest
examples/requirements.txt
pytest
examples/test_demo.py
def test_demo(): assert True