Skip to content

Commit

Permalink
Add new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Mar 11, 2024
1 parent 776fe01 commit 14f7992
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -1,51 +1,25 @@
name: Build, Test, and Document
name: Test ✔️ and document 📄

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
# persist only for runs on this commit.
cache-environment-key: environment-${{ github.sha }}
cache-downloads-key: downloads-${{ github.sha }}
init-shell: >-
bash
test:
name: >-
Test distribution
needs:
- build
name: Test ✔️
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
# persist only for runs on this commit.
cache-environment-key: environment-${{ github.sha }}
cache-downloads-key: downloads-${{ github.sha }}
init-shell: >-
bash
- uses: actions/setup-python@v3
- name: Set up dependencies
run: |
poetry install --without dev --no-root
pip install poetry
poetry install --without dev,docs --no-root
- name: Install Adelie
run: pip install -e .
- name: Move Mosek license
Expand All @@ -56,10 +30,7 @@ jobs:
run: python3 -m pytest tests

doc:
name: >-
Build documentation
needs:
- build
name: Document 📄
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -69,14 +40,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
# persist only for runs on this commit.
cache-environment-key: environment-${{ github.sha }}
cache-downloads-key: downloads-${{ github.sha }}
init-shell: >-
bash
- uses: actions/setup-python@v3
- name: Set up dependencies
run: |
pip install poetry
poetry install --without dev,docs --no-root
- name: Install Adelie
run: pip install -e .
- name: Install pandoc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
name: python-package-distributions
path: ./wheelhouse/*.whl

publish-to-pypi:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Adelie

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/JamesYang007/adelie/build_test_docs.yml)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/JamesYang007/adelie/test_docs.yml)
[![PyPI Downloads](https://img.shields.io/pypi/dm/adelie.svg?label=PyPI%20downloads)](https://pypi.org/project/adelie/)
![versions](https://img.shields.io/pypi/pyversions/adelie.svg)
![PyPI - Version](https://img.shields.io/pypi/v/adelie)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.19.dev15
1.1.19.dev16

0 comments on commit 14f7992

Please sign in to comment.