From ad5868b2c46207a0a6e68b09278ea8fae2d6fc0e Mon Sep 17 00:00:00 2001 From: KonstantinChri Date: Wed, 4 Sep 2024 21:25:04 +0200 Subject: [PATCH] update --- .github/workflows/test.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dac4199..5e1d90a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,47 +3,49 @@ name: Tests on: push: branches: - - main + - '**' tags: - v* pull_request: jobs: tests: - name: pytests (${{ matrix.os }}, Mambaforge) + name: pytests (${{ matrix.os }} - ${{ matrix.python-version }}, Mambaforge) runs-on: ${{ matrix.os }}-latest defaults: run: shell: bash -l {0} strategy: matrix: - os: ["ubuntu", "windows"] - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + os: ["ubuntu", "macos"] + 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: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python - - - name: Add Poetry to PATH - run: | - echo "$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV - - name: Run tests and build wheels + + - name: Run tests run: | conda activate test pytest -vs --log-cli-level=debug + + - name: Build wheels + run: | + conda activate test + mamba install -c conda-forge poetry poetry build + - name: Upload wheels if: matrix.python-version == '3.10' && matrix.os == 'ubuntu' uses: actions/upload-artifact@v2 with: name: wheels path: dist - + release: name: Release runs-on: ubuntu-latest @@ -64,4 +66,4 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | pip install --upgrade twine - twine upload --skip-existing * \ No newline at end of file + twine upload --skip-existing *.tar.gz \ No newline at end of file