From ed57d8864bcc82f891da06e3b6bfbe5944d2e801 Mon Sep 17 00:00:00 2001 From: KonstantinChri Date: Wed, 4 Sep 2024 21:31:56 +0200 Subject: [PATCH] update --- .github/workflows/test.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e1d90a..bd61cee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -66,4 +61,4 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | pip install --upgrade twine - twine upload --skip-existing *.tar.gz \ No newline at end of file + twine upload --skip-existing * \ No newline at end of file