Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinChri committed Sep 4, 2024
1 parent ad5868b commit ed57d88
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,37 @@ name: Tests
on:
push:
branches:
- '**'
- main
tags:
- v*
pull_request:

jobs:
tests:
name: pytests (${{ matrix.os }} - ${{ matrix.python-version }}, Mambaforge)
name: pytests (${{ matrix.os }}, Mambaforge)
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ["ubuntu", "macos"]
python-version: [ '3.8','3.9', '3.10', '3.11' ]
os: ["ubuntu", "windows"]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
miniforge-version: latest
miniforge-variant: Mambaforge

- name: Run tests
- name: Install Poetry
run: |
conda activate test
pytest -vs --log-cli-level=debug
- name: Build wheels
python -m pip install --user poetry
- name: Run tests and build wheels
run: |
conda activate test
mamba install -c conda-forge poetry
pytest -vs --log-cli-level=debug
poetry build
- name: Upload wheels
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu'
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -66,4 +61,4 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload --skip-existing *.tar.gz
twine upload --skip-existing *

0 comments on commit ed57d88

Please sign in to comment.