4
I created in my repository (currently, Github master branch) a Workflow to run the tests of my Python application, using the pytest
. I set it to run on ubuntu-latest
in Python versions (3.6, 3.7 and 3.8) whenever a push or a pull request.
See below my file .yml
:
name: Python Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest tests -v -s
- name: Install package
run: |
pip install FlightRadarAPI
The problem is that Github does not boot Workflow and keeps appearing on the screen the following message, below the logo:
This workflow has no runs yet.
I added a file README.md
to update the repository and see if Workflow was booting but continued the same way. What’s going on? What am I doing wrong?
"That’s what comes of copying and pasting". For a moment I thought you were kkk seer. Thanks for the reply.
– JeanExtreme002