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

Update Github actions versions #279

Merged
merged 10 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/freezeyt_blog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
nappex marked this conversation as resolved.
Show resolved Hide resolved
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: '**/setup.cfg'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setup-python's default behavior is to look for requirements.txt in all subdirectories, but here we don't need the **/.
We also might want to switch to pyproject.toml entirely in the future, when setuptools supports it, so consider:

Suggested change
cache-dependency-path: '**/setup.cfg'
cache-dependency-path: |
setup.cfg
pyproject.toml

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok we can discuss it on stream because I am not sure about that


- name: Install dependencies
run: |
Expand All @@ -39,9 +41,9 @@ jobs:

- if: ${{ github.ref == 'refs/heads/master' }}
name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4.2.5
nappex marked this conversation as resolved.
Show resolved Hide resolved
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: freezeyt_blog/build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: freezeyt_blog/build # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
tox_test:
name: Tox env
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run Tox test
id: test
uses: fedora-python/tox-github-action@master
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
os: [macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: '**/setup.cfg'

- name: Install dependecies
run: |
Expand Down