Fix double workflow name when called #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Allow this workflow to be called from other repositories. | |
workflow_call: | |
# This workflow need Poetry, so no flag is included. | |
jobs: | |
run-tests: | |
name: ${{ matrix.os }}, ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.10', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: "1.8.3" | |
- name: Install dependencies | |
run: | | |
poetry install --with test --all-extras | |
poetry add git+https://github.com/AstarVienna/ScopeSim_Data.git | |
- name: Update dependencies | |
run: poetry update >> $GITHUB_STEP_SUMMARY | |
- name: Run Pytest | |
run: poetry run pytest -m "not webtest" --cov --cov-report=xml |