Skip to content

Commit

Permalink
GitHub actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanJarv committed Dec 15, 2021
1 parent e3304af commit aeff104
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: Go Release

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Go Tests

on:
push:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python Release

on:
push:
tags:
- 'v*'

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Build and publish
run: |
poetry version $(git describe --tags)
poetry publish --build -u "__token__" -p "${{ secrets.PYPI_TOKEN }}"
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml → .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Tests
name: Python Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

on: [push]

jobs:
test:
Expand All @@ -17,9 +22,12 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: MyPy Type Checking
- name: Linting
run: |
make test
- name: Running PyTest Tests
make mypy
- name: Type Checking
run: |
make mypy
- name: Testing
run: |
make test
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# This is an example .go-release.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cdn-proxy"
version = "0.1.0"
version = "v0.1.3"
description = "Take advantage of IP whitelisting of shared CDNs."
authors = ["Ryan Gerstenkorn"]
license = "BSD-3"
Expand Down

0 comments on commit aeff104

Please sign in to comment.