Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action for testing released code #134

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/pylag-package-conda-linux-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release
on:
release:
types: [ released ]
jobs:
build-linux:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: "pylag_test"
auto-activate-base: false
channels: conda-forge,JimClark
auto-update-conda: true
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- name: Install package
shell: bash -l {0}
run: |
conda install -c JimClark pylag
- name: Show conda env
shell: bash -l {0}
run: |
conda info
conda list
# - name: Lint
# shell: bash -l {0}
# run: |
# conda install flake8
# python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash -l {0}
run: |
conda install pytest
pytest
Loading