Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring main tests, needed for 'Passing' icon on GitHub README.md #322

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: WallGo main tests

on:
push:
# Note that this workflow is in a separate file from tests.yml so that
# it can be separated out, and used for the [passing] badge on the README.md
branches: [ main ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:

# If true, Github will cancel all other jobs in the matrix if any of them fails
fail-fast: false

matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install WallGo Python package
run: pip install .[tests]

- name: Test with pytest
run: cd ${{ github.workspace }} && pytest -vs
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: WallGo tests

on:
push:
branches: [ main ]
# Note that this workflow is in a separate file from main.yml so that
# the PR tests are separate from testing if the current main branch passes.
pull_request:
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# WallGo

Home: https://wall-go.github.io/WallGo
Home: https://wallgo.readthedocs.io

License: [GPL3](LICENSE)

Expand All @@ -15,7 +15,7 @@ Development: https://github.com/Wall-Go/WallGo

[![Version](https://img.shields.io/github/v/tag/Wall-Go/WallGo?label=Version)](https://github.com/Wall-Go/WallGo/tags/)

[![WallGo tests](https://github.com/Wall-Go/WallGo/actions/workflows/main.yml/badge.svg)](https://github.com/Wall-Go/WallGo/actions/workflows/main.yml)
[![WallGo tests (main)](https://github.com/Wall-Go/WallGo/actions/workflows/main.yml/badge.svg)](https://github.com/Wall-Go/WallGo/actions/workflows/main.yml)

## About this project

Expand Down
Loading