CI Release Test #295
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
name: CI-release-test | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Daily “At 00:00” | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Python (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest", "macos-latest"] | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ github.token }} | |
- name: conda_setup | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
channel-priority: strict | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
- name: Install released geocat-comp | |
run: | | |
conda create -n import_test geocat-comp | |
- name: See environment info | |
run: | | |
conda activate import_test | |
conda list | |
- name: Import | |
run: | | |
conda activate import_test | |
python -c "import geocat.comp" |