Skip to content

Commit

Permalink
Tidy up action yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Jul 30, 2024
1 parent 95abf4a commit 4a88193
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 33 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@ on: [push]
jobs:
flake8:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2

- name: Set up Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.0
with:
python-version: 3.12

- name: Install Pip Dependencies
run: pip install flake8

- name: Run Flake8
run: flake8 solar_angles
- run: pip install flake8
- run: flake8 solar_angles
23 changes: 5 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,14 @@ defaults:
jobs:
release:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2

- name: Set up Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.0
with:
python-version: 3.12

- name: Install Dependencies for Building Wheels
run: pip install wheel

# - name: Install Dependent Packages
# run: pip install .
# # note that this is not necessary for building the package, it just ensures compatability

- name: Build the Wheel
run: rm -rf dist/ build/ && python3 setup.py bdist_wheel sdist

- name: Deploy on Test PyPi
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f # v1.5.1
- run: pip install wheel
- run: python3 setup.py bdist_wheel sdist
- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPIPW }}
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ name: DevelopmentTest

on: [push]

defaults:
run:
shell: bash

jobs:
unit_testing: # not actually running tests, just testing dependencies are compatible
unit_testing:
strategy:
matrix:
os: [ windows-latest, macos-12, ubuntu-24.04 ]
py: [ "3.11", "3.12" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v2
- uses: actions/checkout@v4.1.7
- name: Set up Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.py }}
- name: Install Pip Dependencies from Requirements
shell: bash
run: pip install -r requirements.txt
- name: Run Tests
run: coverage run -m pytest && coverage report -m
Expand Down

0 comments on commit 4a88193

Please sign in to comment.