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

Add tests in the CI #52

Merged
merged 3 commits into from
Jun 19, 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
29 changes: 29 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build_Test

on:
- push
- pull_request

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- ["3.10", "py310"]
- ["3.11", "py311"]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version[0] }}

- name: Install tox
run: python -m pip install tox

- name: Build and test
run: tox -e ${{ matrix.python-version[1] }}
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -41,17 +41,17 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse-${{ matrix.os }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheelhouse-${{ matrix.os }}
path: ./wheelhouse-${{ matrix.os }}/*.whl

build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -60,7 +60,7 @@ jobs:
python -m pip install -U pip build
python -m build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*
Expand All @@ -72,7 +72,7 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
# By omitting the name we are downloading all the artifacts
path: ./dist/
Expand Down