-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b6357a
commit cf968a5
Showing
1 changed file
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,27 @@ | ||
name: "PySoftK-testing" | ||
name: "Conda different OS" | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
example-1: | ||
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.9, 3.10.1, 3.11.1] | ||
name: Python ${{ matrix.python-version }} example on ${{ matrix.os }} | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
python-version: ["3.7", "3.11"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-activate-base: true | ||
activate-environment: true | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge, anaconda | ||
miniconda-version: "latest" | ||
|
||
- name: Installation xtb | ||
shell: bash | ||
run: | | ||
conda install conda-forge::xtb | ||
- name: Installation pip | ||
shell: bash | ||
run: | | ||
conda install pip | ||
- name: Installing PySoftK | ||
shell: bash | ||
run: | | ||
python -m pip install wheel --user | ||
python -m pip install setuptools --upgrade --user | ||
python -m pip install . --user | ||
- name: Run PySoftK test | ||
working-directory: ./test/test_pysoftk | ||
shell: bash | ||
run: | | ||
python -m pip install pytest pytest-cov --user | ||
python -m pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=pysoftk | tee pytest-coverage.txt | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Conda info | ||
shell: bash -el {0} | ||
run: conda info | ||
- name: Conda list | ||
shell: pwsh | ||
run: conda list |